org.echarts.servlet.sip
Class Port

java.lang.Object
  extended by org.echarts.Port
      extended by org.echarts.LocalPort
          extended by org.echarts.OutputPort
              extended by org.echarts.ExternalPort
                  extended by org.echarts.servlet.sip.Port
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, ExternalPortReference, PortReference
Direct Known Subclasses:
BoxPort, NonSipPort, RemotePort, SipPort

public abstract class Port
extends ExternalPort

Base class for all ports in this package.

See Also:
Serialized Form

Field Summary
protected  FeatureBox box
           
protected  PortMonitor portMonitor
           
 
Fields inherited from class org.echarts.LocalPort
inputQueue
 
Fields inherited from interface org.echarts.PortReference
serialVersionUID
 
Constructor Summary
protected Port(java.lang.String name)
          Construct a new Port
protected Port(java.lang.String name, FeatureBox box)
          Construct a new Port belonging to specified Machine.
 
Method Summary
 void destroy()
          Marks a port as unusable.
 FeatureBox getBox()
           
 boolean isDestroyed()
           
 
Methods inherited from class org.echarts.ExternalPort
getMonitorProperties, getRemote, input, output, setPeer, toString
 
Methods inherited from class org.echarts.LocalPort
clearMachineReference, getDynamicChildIndex, getDynamicParent, getInputQueue, isPossiblyReferencedBy, isPossiblyReferencedBySupermachineOf, isUniquelyReferenced, isUniquelyReferencedByMachine, setMachineReference
 
Methods inherited from class org.echarts.Port
equals, getID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.echarts.PortReference
getID
 

Field Detail

box

protected final FeatureBox box

portMonitor

protected final PortMonitor portMonitor
Constructor Detail

Port

protected Port(java.lang.String name)
Construct a new Port

Parameters:
name - desired symbolic name (for monitor).

Port

protected Port(java.lang.String name,
               FeatureBox box)
Construct a new Port belonging to specified Machine.

Parameters:
name - desired symbolic name
box - feature box containing this port
Method Detail

getBox

public FeatureBox getBox()

destroy

public void destroy()
Marks a port as unusable.


isDestroyed

public boolean isDestroyed()
Returns:
true if port destroyed (unusable), otherwise false.