Class GUIHistory
- java.lang.Object
-
- net.ssehub.easy.producer.ui.confModel.GUIHistory
-
public class GUIHistory extends java.lang.ObjectStores values entered via the GUI until they are saved permanently.- Author:
- Sass
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<GUIHistoryItem>assignmentHistoryprivate static EASyLoggerFactory.EASyLoggerLOGGER
-
Constructor Summary
Constructors Constructor Description GUIHistory()Sole constructor for this class to create a new Assignment history.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidassignValue(IDecisionVariable variable)Stores a new value into thisGUIHistory.java.lang.LonggetLastEdited()Returns the the time of the last editedGUIHistoryItem.GUIHistoryItemgetLastHistoryItem()Returns the latest insertedGUIHistoryItem.
-
-
-
Field Detail
-
LOGGER
private static final EASyLoggerFactory.EASyLogger LOGGER
-
assignmentHistory
private java.util.List<GUIHistoryItem> assignmentHistory
-
-
Method Detail
-
assignValue
void assignValue(IDecisionVariable variable)
Stores a new value into thisGUIHistory.- Parameters:
variable- The variable for which the history shall be created.
-
getLastHistoryItem
public GUIHistoryItem getLastHistoryItem()
Returns the latest insertedGUIHistoryItem.- Returns:
- The latest inserted
GUIHistoryItemor null if nothing was inserted yet.
-
getLastEdited
public java.lang.Long getLastEdited()
Returns the the time of the last editedGUIHistoryItem.- Returns:
- The time of the last edited
GUIHistoryItemas Long (System.currentTimeMillis());
-
-