Package de.tudresden.ws.container

Examples of de.tudresden.ws.container.SumoTLSLogic


          int subParameter = resp.content().readInt();
         
          resp.content().readUnsignedByte();
          int currentPhaseIndex = resp.content().readInt();
         
          SumoTLSLogic stl = new SumoTLSLogic(subID, type, subParameter, currentPhaseIndex);
         
          resp.content().readUnsignedByte();
          int nbPhases = resp.content().readInt();
         
          for(int i1=0; i1<nbPhases; i1++){
           
            resp.content().readUnsignedByte();
            int duration = resp.content().readInt();
           
            resp.content().readUnsignedByte();
            int duration1 = resp.content().readInt();
           
            resp.content().readUnsignedByte();
            int duration2 = resp.content().readInt();
           
            resp.content().readUnsignedByte();
            String phaseDef = resp.content().readStringASCII();
           
            stl.add(new  SumoTLSPhase(duration, duration1, duration2, phaseDef));
           
          }

          output = stl;
         
View Full Code Here


          cmd.content().writeStringASCII(s);
        }
 
    }else if(input.getClass().equals(SumoTLSLogic.class)){
   
      SumoTLSLogic stl = (SumoTLSLogic) input;
      cmd.content().writeUnsignedByte(Constants.TYPE_COMPOUND);
      cmd.content().writeInt(stl.phases.size())
   
      cmd.content().writeUnsignedByte(Constants.TYPE_STRING);
      cmd.content().writeStringASCII(stl.subID)
View Full Code Here

  }

  public SumoTLSLogic getTLSLogic(Object obj) {

    SumoTLSLogic output = new SumoTLSLogic(null, 0, 0, 0);

    try {

      if (obj.getClass().equals(SumoTLSLogic.class)) {
        output = (SumoTLSLogic) obj;
View Full Code Here

TOP

Related Classes of de.tudresden.ws.container.SumoTLSLogic

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.