org.echarts
Class AnyPort

java.lang.Object
  extended by org.echarts.Port
      extended by org.echarts.LocalPort
          extended by org.echarts.AnyPort
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, PortReference

public final class AnyPort
extends LocalPort

See Also:
Serialized Form

Field Summary
static AnyPort ANY_PORT
          Globally accessible constant for use in machines.
 
Fields inherited from class org.echarts.LocalPort
inputQueue
 
Fields inherited from interface org.echarts.PortReference
serialVersionUID
 
Constructor Summary
AnyPort()
           
 
Method Summary
protected  void clearMachineReference(Machine machine)
          Does nothing since AnyPort isn't a real port.
 boolean equals(java.lang.Object object)
          AnyPort is effectively equal to any LocalPort instance.
 PortProperties getMonitorProperties()
          Returns port's monitor properties.
protected  void setMachineReference(Machine machine, DynamicMachine dynamicParent, int dynamicChildIndex)
          Does nothing since AnyPort isn't a real port.
 
Methods inherited from class org.echarts.LocalPort
getDynamicChildIndex, getDynamicParent, getInputQueue, isPossiblyReferencedBy, isPossiblyReferencedBySupermachineOf, isUniquelyReferenced, isUniquelyReferencedByMachine
 
Methods inherited from class org.echarts.Port
getID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY_PORT

public static final AnyPort ANY_PORT
Globally accessible constant for use in machines.

Constructor Detail

AnyPort

public AnyPort()
Method Detail

setMachineReference

protected final void setMachineReference(Machine machine,
                                         DynamicMachine dynamicParent,
                                         int dynamicChildIndex)
                                  throws MachineException
Does nothing since AnyPort isn't a real port. Overrides method in LocalPort ancestor class.

Overrides:
setMachineReference in class LocalPort
Throws:
MachineException

clearMachineReference

protected final void clearMachineReference(Machine machine)
                                    throws MachineException
Does nothing since AnyPort isn't a real port. Overrides method in LocalPort ancestor class.

Overrides:
clearMachineReference in class LocalPort
Throws:
MachineException

equals

public boolean equals(java.lang.Object object)
AnyPort is effectively equal to any LocalPort instance.

Overrides:
equals in class Port

getMonitorProperties

public PortProperties getMonitorProperties()
Returns port's monitor properties.

Specified by:
getMonitorProperties in class LocalPort