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

class LightFixture
{

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

  //LightFixture State Machines
  private static $BulbOn = 1;
  private static $BulbOff = 2;
  private $Bulb;

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

  public function __construct()
  {
    $this->setBulb(self::$BulbOn);
  }

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

  public function getBulbFullName()
  {
    $answer = $this->getBulb();
    return $answer;
  }

  public function getBulb()
  {
    if ($this->Bulb == self::$BulbOn) { return "BulbOn"; }
    elseif ($this->Bulb == self::$BulbOff) { return "BulbOff"; }
    return null;
  }

  public function setBulb($aBulb)
  {
    if ($this->Bulb == self::$BulbOn && ($aBulb != self::$BulbOn && $aBulb != "BulbOn") )
    {
      doExit();
    }
    if ($this->Bulb != self::$BulbOn && ($aBulb == self::$BulbOn || $aBulb == "BulbOn") )
    {
      doEntry();
    }
    if ($aBulb == "BulbOn" || $aBulb == self::$BulbOn)
    {
      $this->Bulb = self::$BulbOn;
      return true;
    }
    elseif ($aBulb == "BulbOff" || $aBulb == self::$BulbOff)
    {
      $this->Bulb = self::$BulbOff;
      return true;
    }
    else
    {
      return false;
    }
  }

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

  public function delete()
  {}

}
?>