public class ExpandPortNames extends EquationVisitor
Constructor and Description |
---|
ExpandPortNames() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
_visitUnitTerm(UnitTerm uTerm)
The method that actually does the substitution of a variable with
the model name of the port.
|
void |
expand(UnitEquation equation,
ComponentEntity actor)
The method is the entry point to the class.
|
_visitUnitEquation, _visitUnitExpr
public ExpandPortNames()
public void expand(UnitEquation equation, ComponentEntity actor) throws IllegalActionException
equation
- The UnitEquation to be visited.actor
- The ComponentEntity that contains ports that may be
referenced in the equation.IllegalActionException
protected java.lang.Object _visitUnitTerm(UnitTerm uTerm) throws IllegalActionException
_visitUnitTerm
in class EquationVisitor
uTerm
- The UnitTerm to visit.IllegalActionException
- Not thrown in this base class.EquationVisitor._visitUnitTerm(UnitTerm)