edu.usc.cse.desi.model
Class LogicalLinkDataModel

java.lang.Object
  extended byedu.usc.cse.desi.model.AbstractDESIModel
      extended byedu.usc.cse.desi.model.AbstractDataModel
          extended byedu.usc.cse.desi.model.AbstractConnectionDataModel
              extended byedu.usc.cse.desi.model.LogicalLinkDataModel
All Implemented Interfaces:
java.util.EventListener, IObjectWithProperties, java.beans.PropertyChangeListener, java.io.Serializable

public class LogicalLinkDataModel
extends AbstractConnectionDataModel

This class represents a link between two components. From it, you can access the two components that it currently connects.

Author:
Nels Started Feb 15, 2004
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.usc.cse.desi.model.AbstractConnectionDataModel
mySourceNode, myTargetNode
 
Fields inherited from class edu.usc.cse.desi.model.AbstractDataModel
myPropertyHolder, myPropetyInitializer
 
Fields inherited from class edu.usc.cse.desi.model.AbstractDESIModel
listeners
 
Constructor Summary
LogicalLinkDataModel()
           
LogicalLinkDataModel(PropertyInitializer prop_init)
           
 
Method Summary
 void attachSource()
          Calls addConnection(this) on the source component.
 void attachTarget()
          Calls addConnection(this) on the target component.
 void detachSource()
          Calls removeConnection(this) on the source component.
 void detachTarget()
          Calls removeConnection(this) on the target component.
 void setSourceNode(ComponentDataModel component)
          Sets a new source component for this link and updates all listeners.
 void setTargetNode(ComponentDataModel component)
          Sets a new target component for this link and updates all listeners.
 
Methods inherited from class edu.usc.cse.desi.model.AbstractConnectionDataModel
getMySourceNode, getMyTargetNode
 
Methods inherited from class edu.usc.cse.desi.model.AbstractDataModel
getMyPropertyInitializer, getProperties, getPropertyDisplayName, getPropertyValue, hasProperty, setPropertyValue
 
Methods inherited from class edu.usc.cse.desi.model.AbstractDESIModel
addPropertyChangeListener, firePropertyChange, propertyChange, reinitialize, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicalLinkDataModel

public LogicalLinkDataModel()

LogicalLinkDataModel

public LogicalLinkDataModel(PropertyInitializer prop_init)
Method Detail

setTargetNode

public void setTargetNode(ComponentDataModel component)
Sets a new target component for this link and updates all listeners.

Parameters:
component - ComponentDataModel

setSourceNode

public void setSourceNode(ComponentDataModel component)
Sets a new source component for this link and updates all listeners.

Parameters:
component - ComponentDataModel

attachTarget

public void attachTarget()
Calls addConnection(this) on the target component.

Specified by:
attachTarget in class AbstractConnectionDataModel

attachSource

public void attachSource()
Calls addConnection(this) on the source component.

Specified by:
attachSource in class AbstractConnectionDataModel

detachTarget

public void detachTarget()
Calls removeConnection(this) on the target component.

Specified by:
detachTarget in class AbstractConnectionDataModel

detachSource

public void detachSource()
Calls removeConnection(this) on the source component.

Specified by:
detachSource in class AbstractConnectionDataModel