|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISensorEvent
ISensorEvent is the interface representing the class IBMSensorEvent
.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
IHeader |
getHeader()
Returns the event's header |
IPayload |
getPayload()
Returns the event's payload. |
IPayloadMetaData |
getPayloadMetaData()
Returns the event's payload metadata |
java.lang.String |
getVersion()
Returns the event's version |
void |
setHeader(IHeader header)
Sets the event's header |
void |
setPayload(IPayload payload)
Sets the event's payload |
void |
setPayloadMetaData(IPayloadMetaData payloadMetaData)
Sets the event's payload metadata |
void |
setVersion(java.lang.String v)
Sets the event's version |
java.util.Map |
toMap()
Converts the event to a java.util.Map |
void |
updateEventType(java.lang.String newEventType)
Updates the header's eventType and the payload's eventGroup name to the given new eventType. |
Methods inherited from interface com.ibm.sensorevent.model.generic.IGenericEvent |
---|
addGroup, getGroup, getGroups, getName, removeGroups, setGroups, setName, traverseGroupPath |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
java.lang.String getVersion() throws SensorEventException
SensorEventException
void setVersion(java.lang.String v) throws SensorEventException
SensorEventException
IHeader getHeader() throws SensorEventException
SensorEventException
void setHeader(IHeader header) throws SensorEventException
SensorEventException
IPayloadMetaData getPayloadMetaData() throws SensorEventException
SensorEventException
void setPayloadMetaData(IPayloadMetaData payloadMetaData) throws SensorEventException
SensorEventException
IPayload getPayload() throws SensorEventException
IPayload
.
If the payload class name cannot be loaded, the type returned is
IPayload
.
SensorEventException
void setPayload(IPayload payload) throws SensorEventException
SensorEventException
java.util.Map toMap() throws SensorEventException
SensorEventException
void updateEventType(java.lang.String newEventType) throws SensorEventException
IBMSensorEventPayload
.
newEventType
- the new eventType name
SensorEventException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |