2010-01-25 23:51:25 +01:00
|
|
|
package com.metaweb.gridlock.model;
|
2010-01-24 22:09:50 +01:00
|
|
|
|
2010-01-27 02:48:42 +01:00
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.ObjectInputStream;
|
2010-01-25 23:51:25 +01:00
|
|
|
import java.io.Serializable;
|
2010-01-24 22:09:50 +01:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2010-01-27 02:48:42 +01:00
|
|
|
import com.metaweb.gridlock.history.History;
|
|
|
|
import com.metaweb.gridlock.process.ProcessManager;
|
|
|
|
|
2010-01-25 23:51:25 +01:00
|
|
|
public class Project implements Serializable {
|
|
|
|
private static final long serialVersionUID = -5089046824819472570L;
|
|
|
|
|
2010-01-24 22:09:50 +01:00
|
|
|
public long id;
|
2010-01-27 02:48:42 +01:00
|
|
|
|
|
|
|
public ColumnModel columnModel = new ColumnModel();
|
|
|
|
public List<Row> rows = new ArrayList<Row>();
|
|
|
|
public History history;
|
|
|
|
|
|
|
|
transient public ProcessManager processManager;
|
2010-01-24 22:09:50 +01:00
|
|
|
|
|
|
|
public Project() {
|
|
|
|
id = Math.round(Math.random() * 1000000) + System.currentTimeMillis();
|
2010-01-27 02:48:42 +01:00
|
|
|
history = new History(this);
|
|
|
|
|
|
|
|
internalInitialize();
|
|
|
|
}
|
|
|
|
|
|
|
|
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
|
|
|
|
in.defaultReadObject();
|
|
|
|
internalInitialize();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected void internalInitialize() {
|
|
|
|
processManager = new ProcessManager();
|
2010-01-24 22:09:50 +01:00
|
|
|
}
|
|
|
|
}
|