Package de.hpi.eworld.visualizer.simulation.traci.common

Examples of de.hpi.eworld.visualizer.simulation.traci.common.TraciInputStream.readDouble()


 
  public static ResponseTrafficLightSwitchCommandReader fromCommand(Command command) throws IOException {
   
    TraciInputStream payload = command.getPayload();

    double switchTime = payload.readDouble();
    byte[] precedingEdge = payload.readTraciString();
    float positionOnPrecedingEdge = payload.readFloat();
    byte[] succeedingEdge = payload.readTraciString();
    int newPhase = payload.readInt();
    double yellowTime = payload.readDouble();
View Full Code Here


    double switchTime = payload.readDouble();
    byte[] precedingEdge = payload.readTraciString();
    float positionOnPrecedingEdge = payload.readFloat();
    byte[] succeedingEdge = payload.readTraciString();
    int newPhase = payload.readInt();
    double yellowTime = payload.readDouble();
   
    return new ResponseTrafficLightSwitchCommandReader(
        switchTime,  precedingEdge, positionOnPrecedingEdge,
        succeedingEdge, newPhase, yellowTime);
  }
View Full Code Here

  public static ResponseMoveNodeCommandReader fromCommand(Command command) throws IOException {
   
    TraciInputStream payload = command.getPayload();
   
    int nodeID = payload.readInt();
    double targetTime = payload.readDouble();
    float []position = (float[])payload.readTraciTypeAndObject();
   
    return new ResponseMoveNodeCommandReader(nodeID, targetTime, position);
  }
}
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.