public class NeoEvent extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
PARENT_ID |
static String |
TIMESTAMP |
| Constructor and Description |
|---|
NeoEvent(com.automationrockstars.gunter.EventType type) |
NeoEvent(String type) |
| Modifier and Type | Method and Description |
|---|---|
String |
createCommand() |
String |
createCommandWithParent() |
static NeoEvent |
fromEvent(Message eventToStore) |
static NeoEvent |
fromJson(String json) |
static NeoEvent |
fromMap(com.automationrockstars.gunter.EventType type,
Map<String,Object> attrs) |
Map<String,Object> |
getAttributes() |
String |
getId() |
String |
getParentId() |
String |
getType() |
boolean |
hasParent() |
void |
setAttributes(Map<String,Object> attributes) |
void |
setId(String id) |
void |
setParentId(String parentId) |
void |
setTimeStamp(Object ts) |
String |
toString() |
public static final String ID
public static final String PARENT_ID
public static final String TIMESTAMP
public NeoEvent(com.automationrockstars.gunter.EventType type)
public NeoEvent(String type)
public String getType()
public void setId(String id)
public void setParentId(String parentId)
public void setTimeStamp(Object ts)
public String getParentId()
public String getId()
public static NeoEvent fromMap(com.automationrockstars.gunter.EventType type, Map<String,Object> attrs)
public boolean hasParent()
public String createCommand()
public String createCommandWithParent()
Copyright © 2019 Automation RockStars. All rights reserved.