*/
import java.io.Serializable;
-import java.util.List;
-
-import org.hibernate.Session;
import org.splat.dal.bo.kernel.Persistent;
-import org.splat.dal.dao.som.Database;
import org.splat.kernel.InvalidPropertyException;
import org.splat.kernel.MissedPropertyException;
import org.splat.kernel.MultiplyDefinedException;
private SimulationContextType type; // User extendable types
private int step;
private ProgressState state;
- private String value;
+ private String value;
private int counter;
private static final long serialVersionUID = 422889133378471949L;
// Public member functions
// ==============================================================================================================================
- public boolean approve () {
-// -------------------------
- if (state != ProgressState.inCHECK) return false;
- this.state = ProgressState.APPROVED; // The type name is supposed being localized
- Database.getSession().update(this);
- return true;
- }
-
public boolean equals (SimulationContext given) {
// -----------------------------------------------
if (isSaved()) return (this.getIndex() == given.getIndex());
return state;
}
+ /**
+ * Set the state.
+ * @param state the state to set
+ */
+ public void setProgressState(ProgressState state) {
+ this.state = state;
+ }
+
public SimulationContextType getType () {
// ---------------------------------------
return type;