EVolve.data
Interface DataSource

All Known Implementing Classes:
ContinuousDataSource, DemoSource, PMCPentiumSource

public interface DataSource

EVolve data source.


Method Summary
 java.lang.String getFileName()
          Gets the name of the data trace file.
 java.lang.String getName()
          Gets the name of the datasource.
 ElementDefinition getNextDefinition()
          Gets the next element definition.
 Entity getNextEntity()
          Gets the next entity.
 Event getNextEvent()
          Gets the next event.
 long getNumberOfEvents(java.lang.String definitionName)
          Gets number of events corresponding event definition name
 long getTotalNumberOfEvents()
          Gets total number of events in the data trace
 void init()
          Initializes the data source.
 void startBuildDefinition()
          Starts building the element definitions.
 void startBuildEntity()
          Starts building the entities.
 void startBuildEvent()
          Starts building the events.
 

Method Detail

init

public void init()
          throws EVolveException
Initializes the data source.

EVolveException

startBuildDefinition

public void startBuildDefinition()
                          throws DataProcessingException
Starts building the element definitions.

DataProcessingException

getNextDefinition

public ElementDefinition getNextDefinition()
                                    throws DataProcessingException
Gets the next element definition.

Returns:
next element definition, null if all the definitions are sent.
DataProcessingException

startBuildEntity

public void startBuildEntity()
                      throws DataProcessingException
Starts building the entities.

DataProcessingException

getNextEntity

public Entity getNextEntity()
                     throws DataProcessingException
Gets the next entity.

Returns:
next entity, null if all the entities are sent.
DataProcessingException

startBuildEvent

public void startBuildEvent()
                     throws DataProcessingException
Starts building the events.

DataProcessingException

getNextEvent

public Event getNextEvent()
                   throws DataProcessingException
Gets the next event.

Returns:
next event, null if all the events are sent.
DataProcessingException

getName

public java.lang.String getName()
Gets the name of the datasource.

Returns:
data sourse name

getFileName

public java.lang.String getFileName()
Gets the name of the data trace file.

Returns:
trace file name or null

getTotalNumberOfEvents

public long getTotalNumberOfEvents()
Gets total number of events in the data trace

Returns:
a long type number containing total number of events

getNumberOfEvents

public long getNumberOfEvents(java.lang.String definitionName)
Gets number of events corresponding event definition name

Returns:
event number