Package eu.bandm.tools.ramus.runtime2
Class Thunk<R,S,M,O>
java.lang.Object
eu.bandm.tools.ramus.runtime2.Action<S,M,O>
eu.bandm.tools.ramus.runtime2.Thunk<R,S,M,O>
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(Action.Continuation<? super S, T, M, O> cont) Applies a monadic continuation to all leaves of this search tree (transition operation).force()protected intvoidhost(Action.Visitor<? super S, M, O> visitor) Performs a double dispatch to the appropriate method of a visitor.booleanisEmpty()Checks whether this search tree is empty.prune()Simplifies this search tree by removing redundant choice nodes and all obstructions (transition operation).Methods inherited from class eu.bandm.tools.ramus.runtime2.Action
choice, diagnosis, diagnosis, fail, fail, findFirstResult, forEachObstruction, forEachResult, map, optional, optional, pruneTo, succeed, succeed
-
Constructor Details
-
Thunk
-
-
Method Details
-
force
-
bind
Description copied from class:ActionApplies a monadic continuation to all leaves of this search tree (transition operation). -
isEmpty
public boolean isEmpty()Description copied from class:ActionChecks whether this search tree is empty. -
getLeafCount
protected int getLeafCount()- Specified by:
getLeafCountin classAction<S,M, O>
-
prune
Description copied from class:ActionSimplifies this search tree by removing redundant choice nodes and all obstructions (transition operation). -
host
Description copied from class:ActionPerforms a double dispatch to the appropriate method of a visitor.
-