|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.sensorevent.model.generic.GenericEvent
public class GenericEvent
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
protected java.util.Map |
groups
The event's groups indexed by the group name |
protected java.lang.String |
name
The event's name |
Constructor Summary | |
---|---|
protected |
GenericEvent()
Constructs a GenericEvent |
protected |
GenericEvent(java.lang.String name)
Constructs a GenericEvent with the specified name |
Method Summary | |
---|---|
void |
addGroup(IGenericGroup group)
Adds a group to this event |
IGenericGroup |
getGroup(java.lang.String name)
Returns the group with the specified name |
java.util.Collection |
getGroups()
Returns this event's groups as a collection of IGenericGroup |
static IGenericEvent |
getInstance(java.lang.String name)
Factory method to create an IGenericEvent instance |
java.lang.String |
getName()
Returns the event's name |
void |
removeGroups()
Removes all groups from this event |
void |
setGroups(java.util.Collection groups)
Sets this event's collection of groups |
void |
setName(java.lang.String name)
Sets the name of this event |
java.lang.String |
toString()
Returns a string representation of this event (for debug purposes) |
IGenericGroup |
traverseGroupPath(java.util.List path)
Returns the last nested group specified in path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected volatile java.lang.String name
protected volatile java.util.Map groups
Constructor Detail |
---|
protected GenericEvent()
protected GenericEvent(java.lang.String name) throws SensorEventException
name
- the name of the event
SensorEventException
Method Detail |
---|
public static IGenericEvent getInstance(java.lang.String name) throws SensorEventException
name
- the name of the event
SensorEventException
public java.lang.String getName()
getName
in interface IGenericEvent
public void setName(java.lang.String name) throws SensorEventException
setName
in interface IGenericEvent
SensorEventException
public void addGroup(IGenericGroup group) throws SensorEventException
addGroup
in interface IGenericEvent
SensorEventException
public IGenericGroup getGroup(java.lang.String name) throws SensorEventException
getGroup
in interface IGenericEvent
SensorEventException
public java.util.Collection getGroups()
IGenericGroup
getGroups
in interface IGenericEvent
public void removeGroups()
removeGroups
in interface IGenericEvent
public void setGroups(java.util.Collection groups) throws SensorEventException
setGroups
in interface IGenericEvent
SensorEventException
public IGenericGroup traverseGroupPath(java.util.List path) throws SensorEventException
traverseGroupPath
in interface IGenericEvent
SensorEventException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |