@Override public DoorOperationMode getDoorOperationMode() { return vType.getDoorOperationMode(); }
/*package*/ ComplexTransitStopHandler(Vehicle vehicle) { this.personEntersTime = vehicle.getType().getAccessTime(); this.personLeavesTime = vehicle.getType().getEgressTime(); this.doorOperationMode = vehicle.getType().getDoorOperationMode(); }
this.writeStartTag(VehicleSchemaV1Names.EGRESSTIME, atts, true); atts.clear(); atts.add(this.createTuple(VehicleSchemaV1Names.MODE, vt.getDoorOperationMode().toString())); this.writeStartTag(VehicleSchemaV1Names.DOOROPERATION, atts, true); atts.clear();
assertEquals(23.23, vehType.getAccessTime(), EPSILON); assertEquals(42.42, vehType.getEgressTime(), EPSILON); assertEquals(DoorOperationMode.parallel, vehType.getDoorOperationMode()); assertEquals(2.0, vehType.getPcuEquivalents()); assertTrue(Double.isInfinite(vehType.getMaximumVelocity())); assertNull(vehType.getCapacity()); assertEquals(DoorOperationMode.serial, vehType.getDoorOperationMode()); assertEquals(1.0, vehType.getPcuEquivalents());