Package srsim.simulator

Examples of srsim.simulator.SimulationContextException


  }

  public SimulationContext getLocalContext()
      throws SimulationContextException {
    if (context == null) {
      throw new SimulationContextException("Context undefined");
    }
    return context;
  }
View Full Code Here


  }

  @Override
  public void step() throws SimulationContextException {
    if (context == null) {
      throw new SimulationContextException("Context undefined");
    } else {
      if (state == ACTIVE) {
        context.increaseTemperature(HEATING_STEPS[currentLevel]);
      }
    }
View Full Code Here

  }

  @Override
  public double poll() throws SimulationContextException {
    if(context == null) {
      throw new SimulationContextException("Context undefined");
    }
    return context.getTemperature();
  }
View Full Code Here

TOP

Related Classes of srsim.simulator.SimulationContextException

Copyright © 2018 www.massapicom. 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.