public final class PtolemyModelUtil
extends java.lang.Object
Constructor and Description |
---|
PtolemyModelUtil() |
Modifier and Type | Method and Description |
---|---|
protected static int |
_getExternalPortDirection(Port port)
Get the direction of the edge anchor point of an external port
inside a composite actor.
|
protected static NamedObj |
_getReferencedObj(RelativeLocation location)
Find the reference object for the given relative location.
|
protected static java.util.Set<java.util.List<Relation>> |
_getRelationGroups(java.util.Set<Relation> relations)
For a set of relations get a set of relation groups, i.e. for each
relation construct a list of relations that are all interconnected,
either directly or indirectly.
|
protected static boolean |
_isConnected(NamedObj namedObj)
Check whether the given Ptolemy model object has any connections, i.e. is
connected to any other components via some link.
|
protected static boolean |
_isFinalState(State state)
Return true if the state is a final state.
|
protected static boolean |
_isInitialState(State state)
Return true if the state is an initial state.
|
protected static boolean |
_isInput(Port port)
Determine whether a given Port is an input port.
|
protected static java.util.Set<java.util.List<Relation>> _getRelationGroups(java.util.Set<Relation> relations)
relations
- Set of relationsprotected static boolean _isConnected(NamedObj namedObj)
namedObj
- The Ptolemy model object which is to be analyzedprotected static NamedObj _getReferencedObj(RelativeLocation location)
location
- A relative locationprotected static boolean _isInput(Port port)
port
- The port to be analyzedprotected static int _getExternalPortDirection(Port port)
SwingConstants
, like
SwingConstants.NORTH
, SwingConstants.SOUTH
,
SwingConstants.EAST
, SwingConstants.WEST
.port
- the external portprotected static boolean _isInitialState(State state)
state
- a State
to test