|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tuberlin.cs.cis.ocl.eval.report.ConstraintSummary
Summarises the results obtained from evaluating a constraint.
Field Summary | |
static java.lang.String |
NOT_SATISFIED
Constant describing that a constraint is not satisified |
static java.lang.String |
SATISIFIED
Constant describing that a constraint is satisified |
static java.lang.String |
UNDEFINED
Constant describing that a constraint is undefined |
Constructor Summary | |
ConstraintSummary(de.tuberlin.cs.cis.ocl.parser.node.AConstraintContextBodypart constraint)
Constructs a constraint summary. |
Method Summary | |
void |
addResult(ConstraintParameter params,
java.lang.String evaluation)
Adds an value to the list of results the constraint is evaluated to. |
java.util.Set |
getAllParameters()
Returns all parameters the summarized constriant has been parameterized with. |
java.util.Collection |
getAllResults()
Returns all results the summarized constriant is evaluated to. |
java.lang.String |
getConstraint()
Returns the String describing an OCL constraint. |
java.lang.String |
getResult(ConstraintParameter params)
Retruns the result the summarized constraint is evaluated to when parameterized with the specified arguments. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String SATISIFIED
public static final java.lang.String NOT_SATISFIED
public static final java.lang.String UNDEFINED
Constructor Detail |
public ConstraintSummary(de.tuberlin.cs.cis.ocl.parser.node.AConstraintContextBodypart constraint)
Method Detail |
public java.lang.String getConstraint()
public void addResult(ConstraintParameter params, java.lang.String evaluation)
params
- the argument the constraint's expression is evaluated forevaluation
- the result the constraint's expression is evaluted topublic java.lang.String getResult(ConstraintParameter params)
params
- the arguments the constraint's expression is evaluated with
public java.util.Collection getAllResults()
public java.util.Set getAllParameters()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |