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 Locatable |
_getLocation(NamedObj namedObj)
Find a location for the given object.
|
protected static java.awt.geom.Point2D |
_getLocationPoint(Locatable locatable)
Retrieve the actual position from a locatable instance.
|
protected static java.awt.geom.Point2D |
_getLocationPoint(NamedObj namedObj)
Get the location given by the location attribute of the given input
object.
|
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 |
_isInput(Port port)
Determine whether a given Port is an input port.
|
protected static Locatable _getLocation(NamedObj namedObj)
namedObj
- a model objectnull
if there is no locationprotected static java.awt.geom.Point2D _getLocationPoint(NamedObj namedObj)
namedObj
- The Ptolemy object for which the location should be
retrieved.protected static java.awt.geom.Point2D _getLocationPoint(Locatable locatable)
locatable
- a locatableprotected 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 port