public class BoundaryDetector
extends java.lang.Object
Constructor and Description |
---|
BoundaryDetector(Receiver receiver)
Construct a BoundaryDetector with the specified containing
receiver.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isConnectedToBoundary()
Return true if the receiver containing this boundary detector
is connected to a boundary port.
|
boolean |
isConnectedToBoundaryInside()
Return true if the receiver containing this boundary detector
is connected to the inside of an input boundary port; return
false otherwise.
|
boolean |
isConnectedToBoundaryOutside()
Return true if the receiver containing this boundary detector
is connected to the outside of an output boundary port; return
false otherwise.
|
boolean |
isInsideBoundary()
Return true if the receiver containing this boundary detector
is contained on the inside of a boundary port.
|
boolean |
isOutsideBoundary()
Return true if the receiver containing this boundary detector
is contained on the outside of a boundary port.
|
void |
reset()
Reset the cache variables in boundary detector.
|
public BoundaryDetector(Receiver receiver)
receiver
- The receiver containing this BoundaryDetector.public boolean isConnectedToBoundary() throws IllegalActionException
IllegalActionException
public boolean isConnectedToBoundaryInside() throws InvalidStateException, IllegalActionException
IllegalActionException
InvalidStateException
public boolean isConnectedToBoundaryOutside() throws IllegalActionException
IllegalActionException
public boolean isInsideBoundary()
public boolean isOutsideBoundary()
public void reset()