Package eu.bandm.tools.util
Interface Operators.Cons<X,S>
- All Known Subinterfaces:
Operators.ICons<X,
S>
- All Known Implementing Classes:
Operators.IdentityCons
,Operators.LiftedFold
- Enclosing class:
- Operators
public static interface Operators.Cons<X,S>
Represents consuming automata with input type
X
and
state type S
.-
Method Summary
-
Method Details
-
consume
Compute a post-state from an input element and a pre-state. Computation should be stateless and thread-safe, i.e.,f.consume(x, s)
for a given fixed function objectf
, input elementx
and states
should not vary unless the observable state ofx
ors
varies.- Parameters:
x
- an input element.state
- a pre-state.- Returns:
- a post-state.
-