|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.Port org.echarts.LocalPort org.echarts.OutputPort org.echarts.ExternalPort
public class ExternalPort
Port used to exchange messages between a machine and an external entity so that it is possible for external messages to fire machine message transitions. Can be exported for remote access via RMI. The machine's environment asynchronously sends messages to the port using the input() method. Optionally, the environment can initialize this port with a (remote) peer external port reference . This port's output() method will put objects in the peer port's input queue for the environment to receive.
Field Summary |
---|
Fields inherited from class org.echarts.LocalPort |
---|
inputQueue |
Fields inherited from interface org.echarts.PortReference |
---|
serialVersionUID |
Constructor Summary | |
---|---|
ExternalPort(java.lang.String name)
|
|
ExternalPort(java.lang.String name,
ExternalPortReference peer)
Version of constructor used to initialize value of a peer external port. |
Method Summary | |
---|---|
PortProperties |
getMonitorProperties()
Gets this port's monitor properties. |
ExternalPortReference |
getRemote()
Returns remote reference to this port. |
void |
input(java.lang.Object message)
Puts message in port's input queue. |
void |
output(java.lang.Object message,
Machine machine)
Output a PortMessage to the port's (remote) peer port. |
void |
setPeer(ExternalPortReference peer)
Sets this port's peer port. |
java.lang.String |
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 |
Constructor Detail |
---|
public ExternalPort(java.lang.String name)
public ExternalPort(java.lang.String name, ExternalPortReference peer)
Method Detail |
---|
public void output(java.lang.Object message, Machine machine) throws java.lang.Exception
output
in class OutputPort
java.lang.Exception
public void input(java.lang.Object message) throws java.lang.Exception
input
in interface ExternalPortReference
java.lang.Exception
public ExternalPortReference getRemote()
public final void setPeer(ExternalPortReference peer)
public PortProperties getMonitorProperties()
getMonitorProperties
in class LocalPort
public final java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |