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