public class MirrorCausalityInterface extends CausalityInterfaceForComposites
composeWith(ptolemy.actor.util.CausalityInterface)
method. For each of these
interfaces, this interface finds ports in its own actor that match the names
of those for the specified interfaces, and constructs dependencies that
are oPlus compositions of the dependencies in the specified interfaces for
ports with the same names. For equivalence classes, it merges the equivalence
classes so that if two ports are equivalent in any of the provided causality
interfaces, then the corresponding (same named) ports in the actor are also
equivalent._actorDepthVersion, _actorToDepth, _dependencyVersion, _equivalenceClasses, _forwardDependencies, _reverseDependencies
_actor, _backwardPrunedDependencies, _defaultDependency, _delayDependencies, _EMPTY_COLLECTION, _forwardPrunedDependencies
Constructor and Description |
---|
MirrorCausalityInterface(Actor actor,
CausalityInterface causality)
Construct a causality interface that mirrors the specified causality
interface.
|
Modifier and Type | Method and Description |
---|---|
void |
composeWith(CausalityInterface causality)
Add the specified causality interface for the specified actor.
|
Dependency |
getDependency(IOPort input,
IOPort output)
Return the dependency between the specified input port
and the specified output port.
|
_computeActorDepth, checkForCycles, dependentPorts, describeDepths, equivalentPorts, getDepthOfActor, getDepthOfPort, invalidate, removeDependency, topologicalSort
_growDependencies, declareDelayDependency, getActor, getDefaultDependency, toString
public MirrorCausalityInterface(Actor actor, CausalityInterface causality) throws java.lang.IllegalArgumentException
actor
- The actor for which this is an interface.causality
- The interface to mirror.java.lang.IllegalArgumentException
- If the actor parameter is not
an instance of CompositeEntity.public void composeWith(CausalityInterface causality)
causality
- The interface to compose with the one specified
in the constructor.public Dependency getDependency(IOPort input, IOPort output) throws IllegalActionException
getDependency
in interface CausalityInterface
getDependency
in class CausalityInterfaceForComposites
input
- The input port.output
- The output port, or null to update the
dependencies (and record equivalence classes) without
requiring there to be an output port.IllegalActionException
- If a guard expression cannot be parsed.