a | b | |
---|
| 0 | + | public Simulation getSimulation() throws ClassNotFoundException { |
---|
| 0 | + | |
---|
| 0 | + | ArrayList<Operation> listOp2 = new ArrayList<Operation>(); |
---|
| 0 | + | operationsPrioriteToDoListModel = dyndefn.getOperationList(); |
---|
| 0 | + | |
---|
| 0 | + | for (int i = 0; i < operationsPrioriteToDoListModel.size(); i++) { |
---|
| 0 | + | listOp2.add((AbstractOperation) operationsPrioriteToDoListModel.get(i)); |
---|
| 0 | + | if (operationsPrioriteToDoListModel.get(i) instanceof OperationSuccession) { |
---|
| 0 | + | listOp2.add((OperationSuccession) operationsPrioriteToDoListModel.get(i)); |
---|
| 0 | + | } |
---|
| 0 | + | } |
---|
| 0 | + | int duration = simDef.getDuration(); |
---|
| 0 | + | int visu = simDef.getFrequenceVisu(); |
---|
| 0 | + | Simulation c2 = new Simulation(listOp2, duration, visu, simDef.getMatrixWidth(), simDef.getMatrixHeight()); |
---|
| 0 | + | if(simDef.getCalcul() != null){ |
---|
| 0 | + | c2.NUM--; |
---|
| 0 | + | } |
---|
| 0 | + | if(landscapeDefinition != null) |
---|
| 0 | + | c2.setMerges(landscapeDefinition.getMerges()); |
---|
| 0 | + | return c2; |
---|
| 0 | + | } |
---|
| 0 | + | |
---|
| 0 | + | public int getReturnStatus() { |
---|
| 0 | + | return returnStatus; |
---|
| 0 | + | } |
---|
| 0 | + | |
---|
| 0 | + | public int getMatrixHeight() { |
---|
| 0 | + | return matrixHeight; |
---|
| 0 | + | } |
---|
| 0 | + | |
---|
| 0 | + | public int getMatrixWidth() { |
---|
| 0 | + | return matrixWidth; |
---|
| 0 | + | } |
---|
| 0 | + | |
---|
| 0 | + | public String getTimer() { |
---|
| 0 | + | return strTimer; |
---|
| 0 | + | } |
---|
... | |
---|