Package srsim.simulator

Examples of srsim.simulator.SimulationConfigurationException


  public void attachSensor(ISensor sensor)
      throws SimulationConfigurationException {
    if (sensor instanceof LightSensor) {
      this.sensor = sensor;
    } else {
      throw new SimulationConfigurationException(
          "Trying to attach incompatible sensor");
    }
  }
View Full Code Here


  public void attachActuator(IActuator actuator)
      throws SimulationConfigurationException {
    if (actuator instanceof LightingActuator) {
      lights.add(actuator);
    } else {
      throw new SimulationConfigurationException(
          "Trying to attach incompatible actuator");
    }
  }
View Full Code Here

  }

  @Override
  public void attachSensor(ISensor sensor)
      throws SimulationConfigurationException {
    throw new SimulationConfigurationException(
        "Sensors not supported by this controller.");
  }
View Full Code Here

  public void attachActuator(IActuator actuator)
      throws SimulationConfigurationException {
    if (actuator instanceof MusicActuator) {
      actuators.add(actuator);
    } else {
      throw new SimulationConfigurationException(
          "Trying to attach incompatible actuator.");
    }
  }
View Full Code Here

TOP

Related Classes of srsim.simulator.SimulationConfigurationException

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.