100101102103104105106107108
} public SimulationContext getLocalContext() throws SimulationContextException { if (context == null) { throw new SimulationContextException("Context undefined"); } return context; }
6162636465666768697071
} @Override public void step() throws SimulationContextException { if (context == null) { throw new SimulationContextException("Context undefined"); } else { if (state == ACTIVE) { context.increaseTemperature(HEATING_STEPS[currentLevel]); } }
222324252627282930
} @Override public double poll() throws SimulationContextException { if(context == null) { throw new SimulationContextException("Context undefined"); } return context.getTemperature(); }