java.lang.Object
dev.civl.gmc.smc.Predicate
- All Implemented Interfaces:
StatePredicateIF<Integer>
The predicate used for detecting violation state defined in the given list
states. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable explanation of why the predicate does or does not hold, after methodStatePredicateIF.holdsAt(S)has been called.booleanDoes this predicate hold at the given state?toString()
-
Constructor Details
-
Predicate
-
-
Method Details
-
holdsAt
Does this predicate hold at the given state?
For the Violation State Predicate, if the given
stateis in the field violationStates, this function will returntrue(which will make the SMC returnfalsefor this violation), elsefalse.- Specified by:
holdsAtin interfaceStatePredicateIF<Integer>- Parameters:
state- any state in the state-transition system- Returns:
- true iff this predicate holds at the state
-
explanation
Description copied from interface:StatePredicateIFReturns a human-readable explanation of why the predicate does or does not hold, after methodStatePredicateIF.holdsAt(S)has been called. The information returns should correspond to the last call toStatePredicateIF.holdsAt(S).- Specified by:
explanationin interfaceStatePredicateIF<Integer>
-
toString
-