|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.unit.Solution
An instance of this class contains a "solution" of Unit constraints. In essence, the solution represents the constraints between a set of Unit variables, and a set of Units. The table below illustrates this.
| 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.
| Red (rowland) |
| Red (rowland) |
| Constructor Summary | |
Solution(TypedCompositeActor model,
java.lang.String[] vLabels,
java.util.Vector constraints)
Construct a Solution from a set of variables, and a set of constraints. |
|
| Method Summary | |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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.| Method Detail |
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||