Class GUIHistoryItem
- java.lang.Object
-
- net.ssehub.easy.producer.ui.confModel.GUIHistoryItem
-
- All Implemented Interfaces:
java.lang.Comparable<GUIHistoryItem>
public class GUIHistoryItem extends java.lang.Object implements java.lang.Comparable<GUIHistoryItem>
Stores one value entered via the GUI until they are saved permanently.- Author:
- Sass
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.LonglastEditedprivate IAssignmentStatestateprivate Valuevalueprivate IDecisionVariablevariable
-
Constructor Summary
Constructors Constructor Description GUIHistoryItem(Value value, IAssignmentState state, IDecisionVariable variable, java.lang.Long lastEdited)Sole constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GUIHistoryItem historyItem)java.lang.LonggetLastEdited()Getter for the last edited value.IAssignmentStategetState()Getter for the assignment state.ValuegetValue()Getter for the value.IDecisionVariablegetVariable()Getter for the variable.
-
-
-
Field Detail
-
value
private Value value
-
state
private IAssignmentState state
-
variable
private IDecisionVariable variable
-
lastEdited
private java.lang.Long lastEdited
-
-
Constructor Detail
-
GUIHistoryItem
GUIHistoryItem(Value value, IAssignmentState state, IDecisionVariable variable, java.lang.Long lastEdited)
Sole constructor for this class. This constructor defines a new value assignment.- Parameters:
value- The value which shall be saved.state- The assignment state which shall be saved.variable- The variable which shall be saved.lastEdited- Time in milliseconds
-
-
Method Detail
-
getValue
public Value getValue()
Getter for the value.- Returns:
- the value (must not be null).
-
getState
public IAssignmentState getState()
Getter for the assignment state.- Returns:
- the state (must not be null).
-
getVariable
public IDecisionVariable getVariable()
Getter for the variable.- Returns:
- the variable (must not be null).
-
getLastEdited
public java.lang.Long getLastEdited()
Getter for the last edited value.- Returns:
- last Edited in Milliseconds
-
compareTo
public int compareTo(GUIHistoryItem historyItem)
- Specified by:
compareToin interfacejava.lang.Comparable<GUIHistoryItem>
-
-