All Packages Class Hierarchy This Package Previous Next Index
Interface hep.analysis.EventSource
- public interface EventSource
A source for events. EventGenerator implements this interface, as do
objects opened by the openDataSet(String)
method in the DIM
(data interface module) interface.
- See Also:
- EventGenerator, DIM, openDataSet
-
afterLastEvent()
- Called after the last event is accessed.
-
beforeFirstEvent()
- Called before the first event is accessed.
-
close()
- Provide some cleanup code if it is relevant to close the event source.
-
getEventDataClass()
- Specify class of objects to be returned by getNextEvent
-
getName()
- Return a name for your event source.
-
getNextEvent()
- Return the next event.
-
getTotalNumberOfEvents()
- Return the number of events, or -1 if unknown.
getTotalNumberOfEvents
public abstract int getTotalNumberOfEvents()
- Return the number of events, or -1 if unknown.
beforeFirstEvent
public abstract void beforeFirstEvent()
- Called before the first event is accessed.
afterLastEvent
public abstract void afterLastEvent()
- Called after the last event is accessed.
getNextEvent
public abstract EventData getNextEvent() throws EndOfDataException
- Return the next event.
- Throws: EndOfDataException
- when no more events are available
getName
public abstract String getName()
- Return a name for your event source.
close
public abstract void close()
- Provide some cleanup code if it is relevant to close the event source.
getEventDataClass
public abstract Class getEventDataClass()
- Specify class of objects to be returned by getNextEvent
All Packages Class Hierarchy This Package Previous Next Index