Package slash.navigation.klicktel.binding

Examples of slash.navigation.klicktel.binding.KDRoute$RouteOptions$Vehicle


    final String OWNER = "Kubota";
    Vehicle[] vehicles = new Vehicle[VEHICLE_NUM];
   
    
    for(int i = 0; i < vehicles.length; i++) {
      vehicles[i] = new Vehicle();
      vehicles[i].setOwner(OWNER);
      vehicles[i].setSpeed(Math.random() * i);
      vehicles[i].setDirection(Math.random() * i);
    }
   
    LinkedList startNode = new LinkedList(vehicles[0]);
   
    LinkedList node = startNode;
    for(int i = 1; i < vehicles.length; i++) {
      node.setNext(new LinkedList(vehicles[i]));
      node = node.next;
    }
   
    node = startNode;
    while(node != null) {
      Vehicle output = (Vehicle)node.getValue();
      System.out.println("ID : " + output.getId());
      System.out.println("OWNER : " + output.getOwner());
      System.out.println("SPEED : " + output.getSpeed());
      System.out.println("DIRECTION : " + output.getDirection());
      System.out.println();
     
      node = node.next;
    }
   
View Full Code Here


    final String OWNER = "Kubota";
    Vehicle[] vehicles = new Vehicle[VEHICLE_NUM];
   
    
    for(int i = 0; i < vehicles.length; i++) {
      vehicles[i] = new Vehicle();
      vehicles[i].setOwner(OWNER);
      vehicles[i].setSpeed(Math.random() * i);
      vehicles[i].setDirection(Math.random() * i);
    }
   
    LinkedList startNode = new LinkedList(vehicles[0]);
   
    LinkedList node = startNode;
    for(int i = 1; i < vehicles.length; i++) {
      node.setNext(new LinkedList(vehicles[i]));
      node = node.next;
    }
   
    node = startNode;
    while(node != null) {
      Vehicle output = (Vehicle)node.getValue();
      System.out.println("ID : " + output.getId());
      System.out.println("OWNER : " + output.getOwner());
      System.out.println("SPEED : " + output.getSpeed());
      System.out.println("DIRECTION : " + output.getDirection());
      System.out.println();
     
      node = node.next;
    }
   
View Full Code Here

    final String OWNER = "Kubota";
    Vehicle[] vehicles = new Vehicle[VEHICLE_NUM];
   
    
    for(int i = 0; i < vehicles.length; i++) {
      vehicles[i] = new Vehicle();
      vehicles[i].setOwner(OWNER);
      vehicles[i].setSpeed(Math.random() * i);
      vehicles[i].setDirection(Math.random() * i);
    }
   
    LinkedList startNode = new LinkedList(vehicles[0]);
   
    LinkedList node = startNode;
    for(int i = 1; i < vehicles.length; i++) {
      node.setNext(new LinkedList(vehicles[i]));
      node = node.next;
    }
   
    node = startNode;
    while(node != null) {
      Vehicle output = (Vehicle)node.getValue();
      System.out.println("ID : " + output.getId());
      System.out.println("OWNER : " + output.getOwner());
      System.out.println("SPEED : " + output.getSpeed());
      System.out.println("DIRECTION : " + output.getDirection());
      System.out.println();
     
      node = node.next;
    }
   
View Full Code Here

    final String OWNER = "Kubota";
    Vehicle[] vehicles = new Vehicle[VEHICLE_NUM];
   
    
    for(int i = 0; i < vehicles.length; i++) {
      vehicles[i] = new Vehicle();
      vehicles[i].setOwner(OWNER);
      vehicles[i].setSpeed(Math.random() * i);
      vehicles[i].setDirection(Math.random() * i);
    }
   
    LinkedList startNode = new LinkedList(vehicles[0]);
   
    LinkedList node = startNode;
    for(int i = 1; i < vehicles.length; i++) {
      node.setNext(new LinkedList(vehicles[i]));
      node = node.next;
    }
   
    node = startNode;
    while(node != null) {
      Vehicle output = (Vehicle)node.getValue();
      System.out.println("ID : " + output.getId());
      System.out.println("OWNER : " + output.getOwner());
      System.out.println("SPEED : " + output.getSpeed());
      System.out.println("DIRECTION : " + output.getDirection());
      System.out.println();
     
      node = node.next;
    }
  }
View Full Code Here

    final String OWNER = "Kubota";
    Vehicle[] vehicles = new Vehicle[VEHICLE_NUM];
   
    
    for(int i = 0; i < vehicles.length; i++) {
      vehicles[i] = new Vehicle();
      vehicles[i].setOwner(OWNER);
      vehicles[i].setSpeed(Math.random() * i);
      vehicles[i].setDirection(Math.random() * i);
    }
   
    LinkedList startNode = new LinkedList(vehicles[0]);
   
    LinkedList node = startNode;
    for(int i = 1; i < vehicles.length; i++) {
      node.setNext(new LinkedList(vehicles[i]));
      node = node.next;
    }
   
    node = startNode;
    while(node != null) {
      Vehicle output = (Vehicle)node.getValue();
      System.out.println("ID : " + output.getId());
      System.out.println("OWNER : " + output.getOwner());
      System.out.println("SPEED : " + output.getSpeed());
      System.out.println("DIRECTION : " + output.getDirection());
      System.out.println();
     
      node = node.next;
    }
  }
View Full Code Here

        }
        return new KlickTelRoute(null, route.getRouteOptions(), positions);
    }

    public void read(InputStream source, CompactCalendar startDate, ParserContext<KlickTelRoute> context) throws Exception {
        KDRoute KDRoute = unmarshal(source);
        context.appendRoute(process(KDRoute));
    }
View Full Code Here

        return formatDoubleAsString(aDouble, 8).replace('.', ',');
    }

    private KDRoute createKlicktel(KlickTelRoute route) {
        ObjectFactory objectFactory = new ObjectFactory();
        KDRoute kdRoute = objectFactory.createKDRoute();
        kdRoute.setRouteOptions(route.getOptions());
        KDRoute.Stations stations = objectFactory.createKDRouteStations();
        kdRoute.setStations(stations);
        for (Wgs84Position position : route.getPositions()) {
            KDRoute.Stations.Station.Point point = objectFactory.createKDRouteStationsStationPoint();
            point.setLongitude(formatPosition(position.getLongitude()));
            point.setLatitude(formatPosition(position.getLatitude()));
            KDRoute.Stations.Station station = objectFactory.createKDRouteStationsStation();
View Full Code Here

        return marshaller;
    }


    public static KDRoute unmarshal(InputStream in) throws JAXBException {
        KDRoute result = null;
        try {
            result = (KDRoute) newUnmarshaller().unmarshal(in);
        } catch (ClassCastException e) {
            throw new JAXBException("Parse error: " + e, e);
        }
View Full Code Here

TOP

Related Classes of slash.navigation.klicktel.binding.KDRoute$RouteOptions$Vehicle

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.