<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.17.0.2716 modeling language!*/

class Tracer
{

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

  //Tracer Attributes
  private $id;
  private $name;
  private $traceFlag1;
  private $traceFlag2;

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

  public function __construct($aId, $aName)
  {
    $this->id = $aId;
    $this->name = $aName;
    $this->traceFlag1 = false;
    $this->traceFlag2 = false;
  }

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

  public function setId($aId)
  {
    $wasSet = false;
    $this->id = $aId;
    if ($traceFlag2)
    {
      ConsoleTracer::handle( gettimeofday(true).",".uniqid().",ConsoleTracer_TraceSingleAttributeAfter.ump,8,Tracer,".spl_object_hash( $this ).",at_s,id,".$this->id );
    }
    $wasSet = true;
    if ($id>232100)
    {
      traceFlag2=true;
    }
    return $wasSet;
  }

  public function setName($aName)
  {
    $wasSet = false;
    $this->name = $aName;
    if ($traceFlag1)
    {
      ConsoleTracer::handle( gettimeofday(true).",".uniqid().",ConsoleTracer_TraceSingleAttributeAfter.ump,7,Tracer,".spl_object_hash( $this ).",at_s,name,".$this->name );
    }
    $wasSet = true;
    if ($name=="tim")
    {
      traceFlag1=true;
    }
    return $wasSet;
  }

  public function getId()
  {
    return $this->id;
  }

  public function getName()
  {
    return $this->name;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

}
?>
