edu.usc.cse.desi.model
Class LogicalLinkDataModel
java.lang.Object
edu.usc.cse.desi.model.AbstractDESIModel
edu.usc.cse.desi.model.AbstractDataModel
edu.usc.cse.desi.model.AbstractConnectionDataModel
edu.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogicalLinkDataModel
public LogicalLinkDataModel()
LogicalLinkDataModel
public LogicalLinkDataModel(PropertyInitializer prop_init)
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