/**
* Copyright (c) 2009 - 2010 AppWork UG(haftungsbeschränkt) <e-mail@appwork.org>
*
* This file is part of org.appwork.controlling
*
* This software is licensed under the Artistic License 2.0,
* see the LICENSE file or http://www.opensource.org/licenses/artistic-license-2.0.php
* for details
*/
package org.appwork.controlling;
/**
* @author thomas
*
*/
public class StatePathEntry {
private State state;
/**
* @return the state
*/
public State getState() {
return state;
}
/**
* @param state
* the state to set
*/
public void setState(State state) {
this.state = state;
}
/**
* @return the timestamp
*/
public long getTimestamp() {
return timestamp;
}
/**
* @param timestamp
* the timestamp to set
*/
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
private long timestamp;
/**
* @param initState
*/
public StatePathEntry(State initState) {
this.state = initState;
this.timestamp = System.currentTimeMillis();
}
public String toString() {
return state.toString();
}
}