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