Package rinde.sim.core.model.pdp.PDPModel

Examples of rinde.sim.core.model.pdp.PDPModel.VehicleState


      for (final Taxi t : taxis) {
        final Point p = rm.get().getPosition(t);
        final int x = vp.toCoordX(p.x) - 5;
        final int y = vp.toCoordY(p.y) - 30;

        final VehicleState vs = pm.get().getVehicleState(t);

        String text = null;
        final int size = (int) pm.get().getContentsSize(t);
        if (vs == VehicleState.DELIVERING) {
          text = lang.disembark;
View Full Code Here


              gc.drawOval(xd - 5, yd - 5, 10, 10);
            }
          }
          gc.setBackground(backgroundInfo);
          gc.setForeground(foregroundInfo);
          final VehicleState state = pdpModel.getVehicleState(v);
          // FIXME, investigate why the second check is
          // neccesary..
          if (state != VehicleState.IDLE
              && pdpModel.getVehicleActionInfo(v) != null) {
            gc.drawText(
                state.toString() + " "
                    + pdpModel.getVehicleActionInfo(v).timeNeeded(), x, y - 20);
          }
          gc.drawText("" + size, x, y);
          drawMore(gc, vp, time, v, p, posMap);
        }
View Full Code Here

TOP

Related Classes of rinde.sim.core.model.pdp.PDPModel.VehicleState

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.