Package de.uniluebeck.itm.tcpip

Examples of de.uniluebeck.itm.tcpip.Storage.readInt()


  @Override
  protected ControlledLinks readValue(Command resp)
      throws TraCIException {
    final Storage content = resp.content();
    Utils.checkType(content, Constants.TYPE_COMPOUND);
    content.readInt(); // ignore data length
    try {
      return new ControlledLinks(content, laneRepo);
    } catch (IOException e) {
      throw new TraCIException(e.getMessage());
    }
View Full Code Here


     
      if (sr.result() != Constants.RTYPE_OK) {
        responseContainer = new ResponseContainer(sr, null);
      }
      else if (sr.id() == Constants.CMD_SIMSTEP2) {
        int nSubResponses = s.readInt();
        List<Command> subResponses = new ArrayList<Command>(
            nSubResponses);
        for (int i = 0; i < nSubResponses; i++) {
          subResponses.add(new Command(s));
        }
View Full Code Here

  @Override
  protected List<Link> readValue(Command resp) throws TraCIException {
    List<Link> out = new ArrayList<Link>();
    Storage content = resp.content();
    Utils.checkType(content, Constants.TYPE_COMPOUND);
    content.readInt(); // ignore link data length
    Utils.checkType(content, Constants.TYPE_INTEGER);
    int count = content.readInt();
    for (int i=0; i<count; i++) {
      try {
        out.add(new Link(content, laneRepo));
View Full Code Here

    List<Link> out = new ArrayList<Link>();
    Storage content = resp.content();
    Utils.checkType(content, Constants.TYPE_COMPOUND);
    content.readInt(); // ignore link data length
    Utils.checkType(content, Constants.TYPE_INTEGER);
    int count = content.readInt();
    for (int i=0; i<count; i++) {
      try {
        out.add(new Link(content, laneRepo));
      } catch (IOException e) {
        throw new TraCIException(e.toString());
View Full Code Here

    @Override
    protected Integer readValue(Command resp)
        throws TraCIException {
      Storage content = resp.content();
      Utils.checkType(content, Constants.TYPE_INTEGER);
      return content.readInt();
    }
   
  }
 
  public static class DoubleQ extends ReadObjectVarQuery<Double> {
View Full Code Here

     
      if (sr.result() != Constants.RTYPE_OK) {
        responseContainer = new ResponseContainer(sr, null);
      }
      else if (sr.id() == Constants.CMD_SIMSTEP2) {
        int nSubResponses = s.readInt();
        List<Command> subResponses = new ArrayList<Command>(
            nSubResponses);
        for (int i = 0; i < nSubResponses; i++) {
          subResponses.add(new Command(s));
        }
View Full Code Here

  @Override
  protected List<Link> readValue(Command resp) throws TraCIException {
    List<Link> out = new ArrayList<Link>();
    Storage content = resp.content();
    Utils.checkType(content, Constants.TYPE_COMPOUND);
    content.readInt(); // ignore link data length
    Utils.checkType(content, Constants.TYPE_INTEGER);
    int count = content.readInt();
    for (int i=0; i<count; i++) {
      try {
        out.add(new Link(content, laneRepo));
View Full Code Here

    List<Link> out = new ArrayList<Link>();
    Storage content = resp.content();
    Utils.checkType(content, Constants.TYPE_COMPOUND);
    content.readInt(); // ignore link data length
    Utils.checkType(content, Constants.TYPE_INTEGER);
    int count = content.readInt();
    for (int i=0; i<count; i++) {
      try {
        out.add(new Link(content, laneRepo));
      } catch (IOException e) {
        throw new TraCIException(e.toString());
View Full Code Here

  @Override
  protected ControlledLinks readValue(Command resp)
      throws TraCIException {
    final Storage content = resp.content();
    Utils.checkType(content, Constants.TYPE_COMPOUND);
    content.readInt(); // ignore data length
    try {
      return new ControlledLinks(content, laneRepo);
    } catch (IOException e) {
      throw new TraCIException(e.getMessage());
    }
View Full Code Here

    @Override
    protected Integer readValue(Command resp)
        throws TraCIException {
      Storage content = resp.content();
      Utils.checkType(content, Constants.TYPE_INTEGER);
      return content.readInt();
    }
   
  }
 
  /**
 
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.