simbad.sim
Class LampActuator

java.lang.Object
  extended bysimbad.sim.BaseObject
      extended bysimbad.sim.Device
          extended bysimbad.sim.ActuatorDevice
              extended bysimbad.sim.LampActuator

public class LampActuator
extends ActuatorDevice

A lamp which can be turn on or off or blink.


Nested Class Summary
 class LampActuator.LampActuatorJPanel
           
 
Constructor Summary
LampActuator(float size)
          Constructs a LampActuator of the given size.
 
Method Summary
 javax.swing.JPanel createInspectorPanel()
          Creates the panel associated to the device.
 boolean getBlink()
          Returns the lamp blink state .
 boolean getOn()
          Returns the lamp state .
 void setBlink(boolean blink)
          Sets the lamp blink state on or off.
 void setOn(boolean on)
          Sets the lamp state on or off.
 
Methods inherited from class simbad.sim.Device
attach, detach, getCanBeTraversed, getName, getRotationTransform, getTranslationTransform, getUpdatePerSecond, rotateY, setCanBeTraversed, setColor, setUpdateOnEachFrame, setUpdatePerSecond, translateTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LampActuator

public LampActuator(float size)
Constructs a LampActuator of the given size.

Parameters:
size - in meter
Method Detail

setOn

public void setOn(boolean on)
Sets the lamp state on or off.

Parameters:
on - true is on.

getOn

public boolean getOn()
Returns the lamp state .

Returns:
true if on.

setBlink

public void setBlink(boolean blink)
Sets the lamp blink state on or off.


getBlink

public boolean getBlink()
Returns the lamp blink state .

Returns:
true if on.

createInspectorPanel

public javax.swing.JPanel createInspectorPanel()
Description copied from class: Device
Creates the panel associated to the device. This panel can be inserted in the inspector window for monitoring.

Overrides:
createInspectorPanel in class Device
Returns:
the JPanel. null if no panel can be associated