Class InitialStateRecorder<E extends EntityType<E>>
- java.lang.Object
-
- com.kenshoo.pl.simulation.internal.InitialStateRecorder<E>
-
- All Implemented Interfaces:
CurrentStateConsumer<E>,OutputGenerator<E>
public class InitialStateRecorder<E extends EntityType<E>> extends java.lang.Object implements OutputGenerator<E>
-
-
Constructor Summary
Constructors Constructor Description InitialStateRecorder(java.util.Collection<EntityField<E,?>> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate(java.util.Collection<? extends EntityChange<E>> commands, ChangeOperation op, ChangeContext ctx)Produces some sort of output given a set of entity changes.Entityget(Identifier<E> id)java.util.stream.Stream<? extends EntityField<?,?>>requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.kenshoo.pl.entity.spi.CurrentStateConsumer
getSupportedChangeOperation
-
-
-
-
Constructor Detail
-
InitialStateRecorder
public InitialStateRecorder(java.util.Collection<EntityField<E,?>> fields)
-
-
Method Detail
-
generate
public void generate(java.util.Collection<? extends EntityChange<E>> commands, ChangeOperation op, ChangeContext ctx)
Description copied from interface:OutputGeneratorProduces some sort of output given a set of entity changes.- Specified by:
generatein interfaceOutputGenerator<E extends EntityType<E>>- Parameters:
commands- a valid subset of the changes initially submitted to the persistence layerctx- modification context
-
requiredFields
public java.util.stream.Stream<? extends EntityField<?,?>> requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)
- Specified by:
requiredFieldsin interfaceCurrentStateConsumer<E extends EntityType<E>>
-
get
public Entity get(Identifier<E> id)
-
-