cz.cuni.amis.dash
Class EngineData

Package class diagram package EngineData
java.lang.Object
  extended by cz.cuni.amis.dash.EngineData

public final class EngineData
extends Object

Storage for all information provided by the engine that will be collected. For now, it stores the PoshPlan along with all reached paths and their timestamps.

Author:
Honza

Constructor Summary
EngineData(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
          Create new storage for execution of @plan.
 
Method Summary
 List<Long> getOccurrences(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
          Get times when engine reached the @path
 Set<cz.cuni.amis.pogamut.sposh.elements.LapPath> getPaths()
           
 cz.cuni.amis.pogamut.sposh.elements.PoshPlan getPlan()
           
 void storePath(cz.cuni.amis.pogamut.sposh.elements.LapPath path, long timestamp)
          Add record that engine has reached the @path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineData

public EngineData(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
Create new storage for execution of @plan.

Parameters:
plan - Plan for which we will gather data.
Method Detail

storePath

public void storePath(cz.cuni.amis.pogamut.sposh.elements.LapPath path,
                      long timestamp)
Add record that engine has reached the @path.

Parameters:
path - Path the engine has reached
timestamp - When did engine reached the path

getPlan

public cz.cuni.amis.pogamut.sposh.elements.PoshPlan getPlan()
Returns:
Get plan the engine used.

getPaths

public Set<cz.cuni.amis.pogamut.sposh.elements.LapPath> getPaths()
Returns:
Unmodifiable set containing all paths that were ever traversed by the engine.

getOccurrences

public List<Long> getOccurrences(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
Get times when engine reached the @path

Parameters:
path - For which path we want timestamps.
Returns:
Unmodifiable list of all occurances of the @path in the engine in ascending order.


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.