java.lang.Object
dev.civl.gmc.FalsePredicate<S>
- Type Parameters:
S- the type used to represent states in the state-transition system
- All Implemented Interfaces:
StatePredicateIF<S>
The state predicate which simply returns "false" at every state. This is
needed in some contexts. For example, a depth-first searcher requires a
predicate. If you want to search all reachable states, you can provide it a
false predicate.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FalsePredicate
public FalsePredicate()
-
-
Method Details
-
holdsAt
Returns false.- Specified by:
holdsAtin interfaceStatePredicateIF<S>- Parameters:
state- any state in the state-transition system- Returns:
- false
-
explanation
Returns the string "The false predicate is always false."- Specified by:
explanationin interfaceStatePredicateIF<S>- Returns:
- "The false predicate is always false."
-
toString
Returns the string "FalsePredicate".
-