java.lang.Object
es.urjc.etsii.grafo.events.AbstractEventStorage<S,I>
- Direct Known Subclasses:
MemoryEventStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all MorkEventsabstract MorkEventgetEvent(int id) Get a single event with the given idgetEvents(int from, int to) Get a list of events by id, in range [from, to)getEventsByType(Class<T> type) Returns an event stream for the given event type, ordered by creation date.abstract Stream<SolutionGeneratedEvent<S, I>> getGeneratedSolEventForExp(String experimentName) Get all solution generated event for a given experiment.longsolutionsInMemory(String experimentName) Count solutions in memory (not garbage collected) for a given experiment
-
Constructor Details
-
AbstractEventStorage
public AbstractEventStorage()
-
-
Method Details
-
getEvents
-
getEvent
Get a single event with the given id- Parameters:
id- event id- Returns:
- event with the given id
- Throws:
IllegalArgumentException- if the id is not valid
-
getGeneratedSolEventForExp
public abstract Stream<SolutionGeneratedEvent<S,I>> getGeneratedSolEventForExp(String experimentName) Get all solution generated event for a given experiment.- Parameters:
experimentName- Experiment name- Returns:
- SolutionGenerated events
-
getEventsByType
-
getAllEvents
-
solutionsInMemory
Count solutions in memory (not garbage collected) for a given experiment- Returns:
- solution in memory for the given experiment
-