- Type Parameters:
S- the type used to represent states
- All Known Implementing Classes:
FalsePredicate,Predicate
public interface StatePredicateIF<S>
A state predicate is basically a function which returns either true or false
at any state in the transition system. It is typically used to encode a "bad"
property, such as deadlock.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable explanation of why the predicate does or does not hold, after methodholdsAt(S)has been called.booleanDoes this predicate hold at the given state?
-
Method Details
-
holdsAt
Does this predicate hold at the given state?- Parameters:
state- any state in the state-transition system- Returns:
- true iff this predicate holds at the state
-
explanation
String explanation()Returns a human-readable explanation of why the predicate does or does not hold, after methodholdsAt(S)has been called. The information returns should correspond to the last call toholdsAt(S).
-