lp.trans
Class CollectingModelConsumer
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<StableModel>
lp.trans.CollectingModelConsumer
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<StableModel>, Collection<StableModel>, Set<StableModel>, Consumer<StableModel>
class CollectingModelConsumer
- extends HashSet<StableModel>
- implements Consumer<StableModel>
A model consumer that collects all models it receives through the
consume(StableModel)
method. Used in LpSolverTest
and
DlpSolverTest
.
- Version:
- 1.0.0
- Author:
- Martin Slota
CollectingModelConsumer
CollectingModelConsumer()
beforeConsuming
public void beforeConsuming()
- No action needed here.
- Specified by:
beforeConsuming
in interface Consumer<StableModel>
afterConsuming
public void afterConsuming()
- No action needed here.
- Specified by:
afterConsuming
in interface Consumer<StableModel>
consume
public void consume(StableModel model)
- Adds
model
to this set.
- Specified by:
consume
in interface Consumer<StableModel>
- Parameters:
model
- the model to be processed