Examples of SimException


Examples of com.guokr.simbase.errors.SimException

            SerializerHelper serializerHelper = helper.get();
            serializerHelper.writeB(output, this.base);
            serializerHelper.writeVectorSets(output, this.vectorSets);
            serializerHelper.writeRecommendations(output, this.recommendations);
        } catch (Throwable e) {
            throw new SimException(e);
        } finally {
            if (output != null) {
                output.close();
            }
        }
View Full Code Here

Examples of com.guokr.simbase.errors.SimException

                    listener.onRecAdded(key(), vkeySrc, vkeyTgt);
                }
            }

        } catch (Throwable e) {
            throw new SimException(e);
        } finally {
            if (input != null) {
                input.close();
            }
        }
View Full Code Here

Examples of de.nordakademie.nxtsimulation.util.SimException

  public int readSensorValue(int aPortId) {
    if (ports[aPortId] != null) {
      return ports[aPortId].readSensorValue();
    } else {
      logErrorPortNotAttached(aPortId);
      throw new SimException("Kein Sensor an Port " + aPortId
          + " angeschlossen");
    }
  }
View Full Code Here

Examples of de.nordakademie.nxtsimulation.util.SimException

  public int i2cBusyById(int aPortId) {
    if (ports[aPortId] != null) {
      return ports[aPortId].i2cBusy();
    } else {
      logErrorPortNotAttached(aPortId);
      throw new SimException("Kein Sensor an Port " + aPortId
          + " angeschlossen");
    }
  }
View Full Code Here

Examples of de.nordakademie.nxtsimulation.util.SimException

        // aufgetreten:
        return ret;
      }
    } else {
      logErrorPortNotAttached(aPortId);
      throw new SimException("Kein Sensor an Port " + aPortId
          + " angeschlossen");
    }
  }
View Full Code Here

Examples of de.nordakademie.nxtsimulation.util.SimException

  public void i2cDisableById(int aPortId) {
    if (ports[aPortId] != null) {
      ports[aPortId].i2cDisable();
    } else {
      logErrorPortNotAttached(aPortId);
      throw new SimException("Kein Sensor an Port " + aPortId
          + " angeschlossen");
    }
  }
View Full Code Here

Examples of de.nordakademie.nxtsimulation.util.SimException

  public void i2cEnableById(int aPortId, int mode) {
    if (ports[aPortId] != null) {
      ports[aPortId].i2cEnable(mode);
    } else {
      logErrorPortNotAttached(aPortId);
      throw new SimException("Kein Sensor an Port " + aPortId
          + " angeschlossen");
    }
  }
View Full Code Here

Examples of de.nordakademie.nxtsimulation.util.SimException

    if (ports[aPortId] != null) {
      return ports[aPortId].i2cStart(address, internalAddress,
          numInternalBytes, buffer, numBytes, transferType);
    } else {
      logErrorPortNotAttached(aPortId);
      throw new SimException("Kein Sensor an Port " + aPortId
          + " angeschlossen");
    }
  }
View Full Code Here

Examples of de.nordakademie.nxtsimulation.util.SimException

  public void setADTypeById(int aPortId, int aADType) {
    if (ports[aPortId] != null) {
      ports[aPortId].setADType(aADType);
    } else {
      logErrorPortNotAttached(aPortId);
      throw new SimException("Kein Sensor an Port " + aPortId
          + " angeschlossen");
    }
  }
View Full Code Here

Examples of de.nordakademie.nxtsimulation.util.SimException

  public void setPowerTypeById(int aPortId, int aPortType) {
    if (ports[aPortId] != null) {
      ports[aPortId].setPowerType(aPortType);
    } else {
      logErrorPortNotAttached(aPortId);
      throw new SimException("Kein Sensor an Port " + aPortId
          + " angeschlossen");
    }
  }
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.