public class NotifyValueChangeElement extends RecordingStrategiesElement
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
id
Stores the attribute id.
|
private ValueType |
type
Stores the type of the value.
|
private java.lang.Object |
value
Stores the timer state.
|
| Constructor and Description |
|---|
NotifyValueChangeElement()
Creates a new empty instance.
|
NotifyValueChangeElement(java.lang.String id,
ValueType type,
java.lang.Object value)
Creates a new instance with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
If a pool is used this method is for releasing the element from the pool.
|
java.lang.String |
getId()
Getter for the recId.
|
int |
getIdentification()
Returns the unambiguous identification of the element.
|
ValueType |
getType()
Getter for the type.
|
java.lang.Object |
getValue()
Getter for the value.
|
void |
process(RecorderStrategy strategy)
Hands the information of the element to the
RecorderStrategy. |
void |
read(java.io.DataInputStream in)
Reads this instance from the given input stream.
|
void |
release()
Release this element from the pool if this instance is
Poolable. |
void |
send(java.io.DataOutputStream out)
Writes this instance to the given output stream.
|
void |
setId(java.lang.String id)
Setter for the id.
|
void |
setType(ValueType type)
Setter for the type.
|
void |
setValue(java.lang.Object value)
Setter for the value.
|
private java.lang.String id
private ValueType type
private java.lang.Object value
public NotifyValueChangeElement()
public NotifyValueChangeElement(java.lang.String id,
ValueType type,
java.lang.Object value)
id - the timer identification (may overlap with recorder ids)type - the type of the valuevalue - the new value after the changepublic java.lang.String getId()
public void setId(java.lang.String id)
id - the id to setpublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - the value to setpublic ValueType getType()
public void setType(ValueType type)
type - the type to setpublic void send(java.io.DataOutputStream out)
throws java.io.IOException
send in class RecordingStrategiesElementout - the output streamjava.io.IOException - in case of any I/O error or problempublic void read(java.io.DataInputStream in)
throws java.io.IOException
read in class RecordingStrategiesElementin - the input streamjava.io.IOException - in case of any I/O error or problempublic int getIdentification()
getIdentification in class RecordingStrategiesElementpublic void process(RecorderStrategy strategy)
RecorderStrategy.process in class RecordingStrategiesElementstrategy - the RecorderStrategypublic void clear()
clear in class RecordingStrategiesElementpublic void release()
Poolable.release in class RecordingStrategiesElement