|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.physics.event.BaseEvent
public class BaseEvent
A simple implementation of HEPEvent
| Constructor Summary | |
|---|---|
BaseEvent(int run,
int event)
|
|
BaseEvent(int run,
int event,
long timestamp)
Create a new event with an explicit timestamp |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String key)
Get an object from the event |
int |
getEventNumber()
|
int |
getRunNumber()
|
java.util.Map |
getTags()
An arbitrary set of tags that can be associated with the event. |
long |
getTimeStamp()
Get the current timestamp. |
java.util.Set |
keys()
|
void |
put(java.lang.String key,
java.lang.Object component)
Puts an arbitrary object into the event |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseEvent(int run,
int event)
run - The run numberevent - Create a new event. The timestamp will be set
to the current time.
public BaseEvent(int run,
int event,
long timestamp)
run - Teh run numberevent - The event numbertimestamp - The timestamp. By convention this is measured in nS since
1-jan-1970 GMT.| Method Detail |
|---|
public java.lang.Object get(java.lang.String key)
HEPEvent
get in interface HEPEventkey - The key for the objectpublic int getEventNumber()
getEventNumber in interface HEPEventpublic int getRunNumber()
getRunNumber in interface HEPEventpublic java.util.Map getTags()
HEPEvent
getTags in interface HEPEventpublic java.util.Set keys()
keys in interface HEPEvent
public void put(java.lang.String key,
java.lang.Object component)
HEPEvent
put in interface HEPEventkey - The key for this objectcomponent - The object to addpublic long getTimeStamp()
HEPEvent
getTimeStamp in interface HEPEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||