Class ElementStateEvent
- java.lang.Object
-
- com.inductiveautomation.sfc.recorder.Event
-
- com.inductiveautomation.sfc.recorder.ChartStatusEvent
-
- com.inductiveautomation.sfc.recorder.ElementStateEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ElementStateEvent extends ChartStatusEvent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPEID
-
Constructor Summary
Constructors Constructor Description ElementStateEvent()
ElementStateEvent(java.util.UUID elementId, ElementStateEnum previous, ElementStateEnum current, ChartStatus status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fromJson(JSONObject object)
ElementStateEnum
getCurrent()
java.util.UUID
getElementId()
java.lang.String
getElementType()
ElementStateEnum
getPrevious()
java.lang.String
getType()
protected void
toJson(JSONObject object)
-
Methods inherited from class com.inductiveautomation.sfc.recorder.ChartStatusEvent
getElementStatusType, getStatus
-
Methods inherited from class com.inductiveautomation.sfc.recorder.Event
createFrom, getTimestamp, toJson
-
-
-
-
Field Detail
-
TYPEID
public static final java.lang.String TYPEID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ElementStateEvent
public ElementStateEvent()
-
ElementStateEvent
public ElementStateEvent(java.util.UUID elementId, ElementStateEnum previous, ElementStateEnum current, ChartStatus status)
-
-
Method Detail
-
getType
public java.lang.String getType()
- Overrides:
getType
in classChartStatusEvent
-
getElementType
public java.lang.String getElementType()
-
getElementId
public java.util.UUID getElementId()
-
getPrevious
public ElementStateEnum getPrevious()
-
getCurrent
public ElementStateEnum getCurrent()
-
toJson
protected void toJson(JSONObject object) throws JSONException
- Overrides:
toJson
in classChartStatusEvent
- Throws:
JSONException
-
fromJson
protected void fromJson(JSONObject object) throws JSONException
- Overrides:
fromJson
in classChartStatusEvent
- Throws:
JSONException
-
-