/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.32.1.6535.66c005ced modeling language!*/

package example;
import java.util.logging.*;

// line 5 "../JavaLogAPITest1.ump"
public class Tracer
{

  //------------------------
  // STATIC VARIABLES
  //------------------------

  public static final Logger logger = Logger.getLogger(Tracer.class.getName());

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //Tracer Attributes
  private String x;
  private int y;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public Tracer(String aX, int aY)
  {
    x = aX;
    y = aY;
  }

  //------------------------
  // INTERFACE
  //------------------------

  public boolean setX(String aX)
  {
    boolean wasSet = false;
    logger.config( System.currentTimeMillis()+","+Thread.currentThread().getId()+",JavaLogAPITest1.ump,9,Tracer,"+System.identityHashCode(this)+",at_s,x,"+x+","+(""+aX).toString().replace("\n","").replace(",",";") );
    x = aX;
    wasSet = true;
    return wasSet;
  }

  public boolean setY(int aY)
  {
    boolean wasSet = false;
    logger.severe( System.currentTimeMillis()+","+Thread.currentThread().getId()+",JavaLogAPITest1.ump,10,Tracer,"+System.identityHashCode(this)+",at_s,y,"+y+","+(""+aY).toString().replace("\n","").replace(",",";") );
    y = aY;
    wasSet = true;
    return wasSet;
  }

  public String getX()
  {
    return x;
  }

  public int getY()
  {
    return y;
  }

  public void delete()
  {}


  public String toString()
  {
    return super.toString() + "["+
            "x" + ":" + getX()+ "," +
            "y" + ":" + getY()+ "]";
  }
}