edu.usc.cse.desi.model
Class PhysicalLinkDataModel

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.PhysicalLinkDataModel
All Implemented Interfaces:
java.util.EventListener, IObjectWithProperties, java.beans.PropertyChangeListener, java.io.Serializable

public class PhysicalLinkDataModel
extends AbstractConnectionDataModel

This object represents a physical link between two hosts. From it you can access either of the hosts that it 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
PhysicalLinkDataModel()
           
PhysicalLinkDataModel(PropertyInitializer prop_init)
           
 
Method Summary
 void attachSource()
          Calls addConnection(this) on the source host.
 void attachTarget()
          Calls addConnection(this) on the target host.
 void detachSource()
          Calls removeConnection(this) on the source host.
 void detachTarget()
          Calls removeConnection(this) on the target host.
 void setSourceNode(HostDataModel host)
          Sets a new source host for this physical link and updates all listeners.
 void setTargetNode(HostDataModel host)
          Sets a new target host 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

PhysicalLinkDataModel

public PhysicalLinkDataModel()

PhysicalLinkDataModel

public PhysicalLinkDataModel(PropertyInitializer prop_init)
Method Detail

setTargetNode

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

Parameters:
host - HostDataModel

setSourceNode

public void setSourceNode(HostDataModel host)
Sets a new source host for this physical link and updates all listeners.

Parameters:
host - HostDataModel

attachTarget

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

Specified by:
attachTarget in class AbstractConnectionDataModel

attachSource

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

Specified by:
attachSource in class AbstractConnectionDataModel

detachTarget

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

Specified by:
detachTarget in class AbstractConnectionDataModel

detachSource

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

Specified by:
detachSource in class AbstractConnectionDataModel