Package eas.simulation

Examples of eas.simulation.SerializableSimulationState.save()


    @Override
    public void runAfterSimulation(EASRunnable env, ParCollection params) {
        if (!suppressStoringAfterSimResume) {
            SerializableSimulationState simState = new SerializableSimulationState(
                    env.getSimTime(), new File("./serialized/" + storageFileName + "-after.eas"));
            try {simState.save();} catch (SimStateUnserializableException e) {}
        }
    }

    @Override
    public void runDuringSimulation(EASRunnable env, Wink currentSimTime,
View Full Code Here


    public void runDuringSimulation(EASRunnable env, Wink currentSimTime,
            ParCollection params) {
        if (!suppressStoringAfterSimResume && currentSimTime.getLastTick() % storageInterval == storageInterval - 1) {
            SerializableSimulationState simState = new SerializableSimulationState(
                    env.getSimTime(), new File("./serialized/" + storageFileName + "-" + currentSimTime.getLastTick() + ".eas"));
            try {simState.save();} catch (SimStateUnserializableException e) {}
        }
    }

    private boolean suppressStoringAfterSimResume = false;
   
View Full Code Here

                    SerializableSimulationState simState = new SerializableSimulationState(
                            this.liveWindow.environment.getSimTime(), easFile);
                   
                    try {
                        if (dia2.getResult().equals(butt1)) {
                            simState.save();
                        } else if (dia2.getResult().equals(butt2)) {
                            GlobalVariables.getPrematureParameters().logInfo("Creating executable simState (this may take a while).");
                            simState.createExecutableSimState();
                        }
                    } catch (SimStateUnserializableException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.