edu.usc.cse.desi.model
Class AbstractConnectionDataModel

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

public abstract class AbstractConnectionDataModel
extends AbstractDataModel

This is the abstract class intended to be subclassed by logical and physical links. It contains methods common to both of those classes.

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

Field Summary
protected  AbstractNodeDataModel mySourceNode
           
protected  AbstractNodeDataModel 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
AbstractConnectionDataModel()
           
AbstractConnectionDataModel(PropertyInitializer prop_init)
           
 
Method Summary
abstract  void attachSource()
          If link is attached to a source node, tell the source node to add this link.
abstract  void attachTarget()
          If this link is attached to a target node, tell the target node to add to this link.
abstract  void detachSource()
          If this link is attached to a source node, tell the source node to remove from this link.
abstract  void detachTarget()
          If this link is attached to a target node, tell the target node to remove from this link.
 AbstractNodeDataModel getMySourceNode()
          This returns one of the nodes that it connects.
 AbstractNodeDataModel getMyTargetNode()
          This returns one of the nodes that it connects.
 
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
 

Field Detail

myTargetNode

protected AbstractNodeDataModel myTargetNode

mySourceNode

protected AbstractNodeDataModel mySourceNode
Constructor Detail

AbstractConnectionDataModel

public AbstractConnectionDataModel()

AbstractConnectionDataModel

public AbstractConnectionDataModel(PropertyInitializer prop_init)
Method Detail

getMySourceNode

public AbstractNodeDataModel getMySourceNode()
This returns one of the nodes that it connects.

Returns:
AbstractNodeDataModel

getMyTargetNode

public AbstractNodeDataModel getMyTargetNode()
This returns one of the nodes that it connects.

Returns:
AbstractNodeDataModel

attachSource

public abstract void attachSource()
If link is attached to a source node, tell the source node to add this link.


attachTarget

public abstract void attachTarget()
If this link is attached to a target node, tell the target node to add to this link.


detachSource

public abstract void detachSource()
If this link is attached to a source node, tell the source node to remove from this link.


detachTarget

public abstract void detachTarget()
If this link is attached to a target node, tell the target node to remove from this link.