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

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

public class ComponentConnectionModel
extends ConnectionModel

Model for intra-state component to component functional connections

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
 
Fields inherited from class edu.stanford.hci.dtools.statechart.model.ConnectionModel
DASHED_CONNECTION, INPUT_PROP, LINESTYLE_PROP, SOLID_CONNECTION
 
Constructor Summary
ComponentConnectionModel(IOModel source, IOModel target)
           
 
Method Summary
 void addSignalPair(IOModel newSource, IOModel newTarget)
           
 java.lang.Object getPropertyValue(java.lang.Object id)
          Returns the value as String for the Property Sheet
 java.util.ArrayList<SignalPair> getSignalPairs()
          Returns the array of SignalPairs which are on this transition.
 IOModel getSource()
          Returns the source endpoint of this connection.
 IOModel getTarget()
          Returns the target endpoint of this connection.
 void setPropertyValue(java.lang.Object id, java.lang.Object value)
          Sets the lineStyle based on the String provided by the PropertySheet
 
Methods inherited from class edu.stanford.hci.dtools.statechart.model.ConnectionModel
disconnect, getLineStyle, getPropertyDescriptors, reconnect, reconnect, setLineStyle, setSource, setTarget
 
Methods inherited from class edu.stanford.hci.dtools.statechart.model.ModelElement
addPropertyChangeListener, getEditableValue, isPropertySet, removePropertyChangeListener, resetPropertyValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentConnectionModel

public ComponentConnectionModel(IOModel source,
                                IOModel target)
Method Detail

addSignalPair

public void addSignalPair(IOModel newSource,
                          IOModel newTarget)

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 ModelElement
See Also:
IPropertySource.getPropertyValue(java.lang.Object)

setPropertyValue

public void setPropertyValue(java.lang.Object id,
                             java.lang.Object value)
Sets the lineStyle based on the String provided by the PropertySheet

Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Overrides:
setPropertyValue in class ModelElement
See Also:
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)

getSource

public IOModel getSource()
Description copied from class: ConnectionModel
Returns the source endpoint of this connection.

Overrides:
getSource in class ConnectionModel
Returns:
a non-null ShapeModel instance

getTarget

public IOModel getTarget()
Description copied from class: ConnectionModel
Returns the target endpoint of this connection.

Overrides:
getTarget in class ConnectionModel
Returns:
a non-null ShapeModel instance

getSignalPairs

public java.util.ArrayList<SignalPair> getSignalPairs()
Returns the array of SignalPairs which are on this transition.

Returns:
a possibly-null InputComponent instance