InMessageType
- the type of messages being received by the portOutMessageType
- the type of messages being sent by the portpublic abstract class FlowchartPort<InMessageType,OutMessageType> extends Port<InMessageType,OutMessageType>
Port
Port
,
Serialized FormConstructor and Description |
---|
FlowchartPort(FlowchartBlock ao) |
Modifier and Type | Method and Description |
---|---|
abstract long |
count()
Returns the number of agents passed through this port so far
|
FlowchartBlock |
getAgent()
Returns the agent that owns the port.
|
FlowchartBlock |
getFlowchartBlockRepresentative()
Returns the flowchart block which is the representative block for this port.
|
FlowchartBlock |
getFlowchartBlockRepresentative(Agent agent)
This method is internal and shouldn't be called by user.
|
boolean |
isCannotAccept()
Returns
true if this (input) port can't accept agents at the current time. |
abstract boolean |
isError()
Returns
true if there is an error with this port,
e.g. |
boolean |
isPortStateAnimated()
Returns
true if states of port are shown (usually by colored outline). |
boolean |
isReadyToExit()
Returns
true if there is some agent ready to exit this (output) port. |
abstract void |
markError()
Marks this port as having error
|
java.lang.String |
toString()
Returns formatted number of agents passed through this port so far
|
connect, disconnect, disconnectAndUnmapAll, getActiveObject, getDownLinks, getFlatLinks, getFullName, getName, getStatechartLinks, getUpLinks, map, map, onDestroy, receive, restoreOwner, send, unmap, unmap
public FlowchartPort(FlowchartBlock ao)
public FlowchartBlock getAgent()
Port
getAgent
in class Port<InMessageType,OutMessageType>
public FlowchartBlock getFlowchartBlockRepresentative()
getAgent()
in case when this is the port
of the block from internal flowchart of some other flowchart-block.@AnyLogicInternalAPI public FlowchartBlock getFlowchartBlockRepresentative(Agent agent)
@AnyLogicInternalLibraryAPI public boolean isPortStateAnimated()
true
if states of port are shown (usually by colored outline).
Port state may be one of following: "open for receive", "busy", "ready to transmit" etc.true
if port states are shown, false
otherwisepublic abstract void markError()
public abstract boolean isError()
true
if there is an error with this port,
e.g. "the agent at the head of the queue has spent a non-zero
time at this port".true
if there is an error with this portpublic boolean isReadyToExit()
true
if there is some agent ready to exit this (output) port.public boolean isCannotAccept()
true
if this (input) port can't accept agents at the current time.public abstract long count()
public java.lang.String toString()
toString
in class Port<InMessageType,OutMessageType>
count()
Copyright © AnyLogic North America, LLC. All Rights Reserved.