edu.stanford.hci.dtools.statechart.model
Class LEDModel
java.lang.Object
edu.stanford.hci.dtools.statechart.model.ModelElement
edu.stanford.hci.dtools.statechart.model.ShapeModel
edu.stanford.hci.dtools.statechart.model.IOModel
edu.stanford.hci.dtools.statechart.model.OutputModel
edu.stanford.hci.dtools.statechart.model.LEDModel
- All Implemented Interfaces:
- java.io.Serializable, org.eclipse.ui.views.properties.IPropertySource
public class LEDModel
- extends OutputModel
Model for LEDs
This software is distributed under the
BSD License.
- Author:
- Bjoern Hartmann ( bjoern(AT)stanford.edu ), Michael Bernstein ( mbernst(AT)stanford.edu )
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
LED_PROP
Property ID to use when a child is added to this diagram. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LED_PROP
public static final java.lang.String LED_PROP
- Property ID to use when a child is added to this diagram.
- See Also:
- Constant Field Values
LEDModel
public LEDModel(OutputComponent model,
boolean on,
org.eclipse.swt.graphics.Color color)
LEDModel
public LEDModel(LEDModel copy)
copy
public LEDModel copy()
- Specified by:
copy
in class IOModel
getOn
public boolean getOn()
setOn
public void setOn(boolean value)
getColor
public org.eclipse.swt.graphics.Color getColor()
setColor
public void setColor(org.eclipse.swt.graphics.Color newColor)
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.Object id)
- Returns the value as String for the Property Sheet
- Specified by:
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
- Overrides:
getPropertyValue
in class IOModel
- See Also:
IPropertySource.getPropertyValue(java.lang.Object)
setPropertyValue
public void setPropertyValue(java.lang.Object id,
java.lang.Object value)
- Description copied from class:
IOModel
- Set the property value for the given property id.
If no matching id is found, the call is forwarded to the superclass.
The property view uses the IDs from the IPropertyDescriptors array to set the values
of the corresponding properties.
- Specified by:
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
- Overrides:
setPropertyValue
in class IOModel
- See Also:
ShapeModel.descriptors
,
IOModel.getPropertyDescriptors()
realizeStateEntryInHardware
public void realizeStateEntryInHardware(HardwareOutputDispatcher hwOutput)
- Description copied from class:
OutputModel
- Called upon entrance to a state
- Specified by:
realizeStateEntryInHardware
in class OutputModel
realizeStateUpdateInHardware
public void realizeStateUpdateInHardware(HardwareOutputDispatcher hwOutput)
- Description copied from class:
OutputModel
- Called when a state is updated
- Specified by:
realizeStateUpdateInHardware
in class OutputModel