public abstract class EventType
extends java.lang.Object
implements com.serotonin.json.JsonSerializable
Modifier and Type | Class and Description |
---|---|
static interface |
EventType.DuplicateHandling
This interface defines all of the possible actions that can occur if an event is raised for which type there
already exists an active event.
|
static interface |
EventType.EventSources |
Modifier and Type | Field and Description |
---|---|
static ExportCodes |
SOURCE_CODES |
Constructor and Description |
---|
EventType() |
Modifier and Type | Method and Description |
---|---|
boolean |
excludeUser(User user)
Determines if the notification of this event to the given user should be suppressed.
|
int |
getCompoundEventDetectorId()
Convenience method that keeps us from having to cast.
|
protected int |
getCompoundEventDetectorId(com.serotonin.json.JsonObject json,
java.lang.String name) |
int |
getDataPointId()
Convenience method that keeps us from having to cast.
|
protected int |
getDataPointId(com.serotonin.json.JsonObject json,
java.lang.String name) |
protected DataSourceVO<?> |
getDataSource(com.serotonin.json.JsonObject json,
java.lang.String name) |
int |
getDataSourceId()
Convenience method that keeps us from having to cast.
|
abstract int |
getDuplicateHandling()
Determines whether an event type that, once raised, will always first be deactivated or whether overriding events
can be raised.
|
abstract int |
getEventSourceId() |
protected int |
getInt(com.serotonin.json.JsonObject json,
java.lang.String name,
ExportCodes codes) |
protected int |
getMaintenanceEventId(com.serotonin.json.JsonObject json,
java.lang.String name) |
protected int |
getPointEventDetectorId(com.serotonin.json.JsonObject json,
int dpId,
java.lang.String pedName) |
protected int |
getPointEventDetectorId(com.serotonin.json.JsonObject json,
java.lang.String dpName,
java.lang.String pedName) |
protected PublisherVO<?> |
getPublisher(com.serotonin.json.JsonObject json,
java.lang.String name) |
int |
getPublisherId()
Convenience method that keeps us from having to cast.
|
abstract int |
getReferenceId1() |
abstract int |
getReferenceId2() |
protected int |
getScheduledEventId(com.serotonin.json.JsonObject json,
java.lang.String name) |
int |
getScheduleId()
Convenience method that keeps us from having to cast.
|
boolean |
isSystemMessage()
Convenience method that keeps us from having to cast.
|
void |
jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json) |
void |
jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map) |
public static final ExportCodes SOURCE_CODES
public abstract int getEventSourceId()
public boolean isSystemMessage()
public int getDataSourceId()
public int getDataPointId()
public int getScheduleId()
public int getCompoundEventDetectorId()
public int getPublisherId()
public abstract int getDuplicateHandling()
public abstract int getReferenceId1()
public abstract int getReferenceId2()
public boolean excludeUser(User user)
public void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize
in interface com.serotonin.json.JsonSerializable
public void jsonDeserialize(com.serotonin.json.JsonReader reader, com.serotonin.json.JsonObject json) throws com.serotonin.json.JsonException
jsonDeserialize
in interface com.serotonin.json.JsonSerializable
com.serotonin.json.JsonException
protected int getInt(com.serotonin.json.JsonObject json, java.lang.String name, ExportCodes codes) throws com.serotonin.json.JsonException
com.serotonin.json.JsonException
protected int getCompoundEventDetectorId(com.serotonin.json.JsonObject json, java.lang.String name) throws com.serotonin.json.JsonException
com.serotonin.json.JsonException
protected int getScheduledEventId(com.serotonin.json.JsonObject json, java.lang.String name) throws com.serotonin.json.JsonException
com.serotonin.json.JsonException
protected int getDataPointId(com.serotonin.json.JsonObject json, java.lang.String name) throws com.serotonin.json.JsonException
com.serotonin.json.JsonException
protected int getPointEventDetectorId(com.serotonin.json.JsonObject json, java.lang.String dpName, java.lang.String pedName) throws com.serotonin.json.JsonException
com.serotonin.json.JsonException
protected int getPointEventDetectorId(com.serotonin.json.JsonObject json, int dpId, java.lang.String pedName) throws com.serotonin.json.JsonException
com.serotonin.json.JsonException
protected DataSourceVO<?> getDataSource(com.serotonin.json.JsonObject json, java.lang.String name) throws com.serotonin.json.JsonException
com.serotonin.json.JsonException
protected PublisherVO<?> getPublisher(com.serotonin.json.JsonObject json, java.lang.String name) throws com.serotonin.json.JsonException
com.serotonin.json.JsonException
protected int getMaintenanceEventId(com.serotonin.json.JsonObject json, java.lang.String name) throws com.serotonin.json.JsonException
com.serotonin.json.JsonException