-
- All Implemented Interfaces:
public interface Extractor<E extends Object>
An object that is able to extract numeric informations from an Alchemist {@link Environment}, given the current {@link it.unibo.alchemist.core.interfaces.Simulation} {@link Time}, the last {@link Reaction} executed and the current simulation step.
-
-
Method Summary
-
-
Method Detail
-
extractData
abstract <T extends Any> Map<String, E> extractData(Environment<T, ?> environment, Reaction<T> reaction, Time time, Long step)
Extracts properties from an environment. The returned map must either:
contain a single element,
have the keys matching columnNames, or
be iterable in predictable order (namely, implement SortedMap or extend one of LinkedHashMap or ConcurrentLinkedHashMap).
- Parameters:
environment
-the {@link Environment}
reaction
-the last executed {@link Reaction}
time
-the current {@link Time}
step
-the simulation step
-
getColumnNames
abstract List<String> getColumnNames()
-
-
-
-