edu.stanford.hci.dtools.statechart.model
Class InputPair

java.lang.Object
  extended by edu.stanford.hci.dtools.statechart.model.InputPair
All Implemented Interfaces:
java.io.Serializable, org.eclipse.ui.views.properties.IPropertySource

public class InputPair
extends java.lang.Object
implements org.eclipse.ui.views.properties.IPropertySource, java.io.Serializable

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 INPUT_COMPONENT_PROP
          Property ID to use when the input component representing this connection is modified.
static java.lang.String INPUT_EVENT_PARAM_PROP
          Property ID to use when the event's parameters are in question
static java.lang.String INPUT_EVENT_PROP
          Property ID to use when the input event representing this connection is modified.
 
Constructor Summary
InputPair(InputComponent c, EventConditional e, DeviceConfiguration config)
           
 
Method Summary
 java.lang.Object getEditableValue()
           
 int getIndexOfEventConditionalInstance(EventConditional event)
           
 InputComponent getInputComponent()
           
 EventConditional getInputEvent()
           
 InputComponent getLastNotNullComponent()
           
 EventConditional getLastNotNullEvent()
           
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
           
 java.lang.Object getPropertyValue(java.lang.Object id)
           
 boolean isPropertySet(java.lang.Object id)
           
 void resetPropertyValue(java.lang.Object id)
           
 void setDeviceConfiguration(DeviceConfiguration newConfig)
           
 void setInputComponent(InputComponent ic, EventConditional event)
           
 void setInputEvent(EventConditional e)
           
 void setPropertyValue(java.lang.Object id, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_COMPONENT_PROP

public static final java.lang.String INPUT_COMPONENT_PROP
Property ID to use when the input component representing this connection is modified.

See Also:
Constant Field Values

INPUT_EVENT_PROP

public static final java.lang.String INPUT_EVENT_PROP
Property ID to use when the input event representing this connection is modified.

See Also:
Constant Field Values

INPUT_EVENT_PARAM_PROP

public static final java.lang.String INPUT_EVENT_PARAM_PROP
Property ID to use when the event's parameters are in question

See Also:
Constant Field Values
Constructor Detail

InputPair

public InputPair(InputComponent c,
                 EventConditional e,
                 DeviceConfiguration config)
Method Detail

setInputComponent

public void setInputComponent(InputComponent ic,
                              EventConditional event)

getInputComponent

public InputComponent getInputComponent()

setInputEvent

public void setInputEvent(EventConditional e)

getInputEvent

public EventConditional getInputEvent()

setDeviceConfiguration

public void setDeviceConfiguration(DeviceConfiguration newConfig)

getEditableValue

public java.lang.Object getEditableValue()
Specified by:
getEditableValue in interface org.eclipse.ui.views.properties.IPropertySource

getPropertyDescriptors

public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySource

getIndexOfEventConditionalInstance

public int getIndexOfEventConditionalInstance(EventConditional event)

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object id)
Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

isPropertySet

public boolean isPropertySet(java.lang.Object id)
Specified by:
isPropertySet in interface org.eclipse.ui.views.properties.IPropertySource

resetPropertyValue

public void resetPropertyValue(java.lang.Object id)
Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

setPropertyValue

public void setPropertyValue(java.lang.Object id,
                             java.lang.Object value)
Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

getLastNotNullComponent

public InputComponent getLastNotNullComponent()

getLastNotNullEvent

public EventConditional getLastNotNullEvent()