public class Solution
extends java.lang.Object
V1 | V2 | ... | Vl | ||
---|---|---|---|---|---|
C1 | P11 | P12 | ... | P1l | U1 |
C2 | P21 | P22 | ... | P2l | U2 |
: | : | : | ... | : | : |
Ck | Pk1 | Pk2 | ... | Pkl | Uk |
Generally, this class is used by creating an instance that is derived from the Units specifications of a model. Then, a method is invoked that results in other instances being created that are transformations of the original instance. These transformed instances are equivalent, in a sense, to the original instance. The difference is that they provide a different perspective than that of the original instance. In particular, some of the transformed instances can be used to highlight inconsistencies not apparent in the original instance.
Modifier and Type | Field and Description |
---|---|
(package private) double[][] |
_arrayP |
(package private) ptolemy.moml.unit.Solution.Index |
_branchPoint |
(package private) java.util.Vector |
_branchPoints |
(package private) java.lang.String[] |
_constraintExplanations |
(package private) java.util.Vector |
_constraints |
(package private) int[] |
_constraintState |
(package private) boolean |
_debug |
(package private) boolean[] |
_done |
(package private) TypedCompositeActor |
_model |
(package private) int |
_numConstraints |
(package private) int |
_numVariables |
(package private) NamedObj[] |
_source |
(package private) java.lang.String |
_stateDescription |
(package private) Solution |
_upper |
(package private) java.lang.String[] |
_varBindings |
(package private) java.lang.String[] |
_variables |
(package private) int[] |
_varState |
(package private) Unit[] |
_vectorA |
Constructor and Description |
---|
Solution(TypedCompositeActor model,
java.lang.String[] vLabels,
java.util.Vector constraints)
Construct a Solution from a set of variables, and a set of constraints.
|
Modifier and Type | Method and Description |
---|---|
void |
annotateGraph()
Annotates the model so that when it is displayed it will be color coded
and have tooltips that will convey various aspects of the solution.
|
Solution |
completeSolution()
Search for a complete solution.
|
Solution |
copy()
Make a copy of this solution.
|
java.lang.String |
getShortStateDesc()
Get the state of the solution.
|
java.lang.String |
getStateDesc()
Get the state of the solution.
|
java.lang.StringBuffer |
headerInfo()
Create a human readable presentation of the parts of the solution that
won't change as a result of
the operations necessary to carry out the Gaussian elimination.
|
java.util.Vector |
minimalSpanSolutions()
Produce all of the minimal span solutions that can be generated from
this instance.
|
java.lang.StringBuffer |
stateInfo()
The current state of the solver.
|
void |
trace() |
double[][] _arrayP
ptolemy.moml.unit.Solution.Index _branchPoint
java.util.Vector _branchPoints
java.util.Vector _constraints
java.lang.String[] _constraintExplanations
int[] _constraintState
boolean _debug
boolean[] _done
TypedCompositeActor _model
int _numConstraints
int _numVariables
NamedObj[] _source
java.lang.String _stateDescription
Solution _upper
java.lang.String[] _varBindings
java.lang.String[] _variables
int[] _varState
Unit[] _vectorA
public Solution(TypedCompositeActor model, java.lang.String[] vLabels, java.util.Vector constraints) throws IllegalActionException
model
- The model that is the source of the variables and
constraints.vLabels
- The variables.constraints
- The constraints.IllegalActionException
- If there are problems with transforming
a constraint to canonical form.public void annotateGraph()
public Solution completeSolution()
public Solution copy()
public java.lang.String getShortStateDesc()
public java.lang.String getStateDesc()
public java.lang.StringBuffer headerInfo()
public java.util.Vector minimalSpanSolutions()
public java.lang.StringBuffer stateInfo()
public void trace()