@Override public double getPcuEquivalents() { return vType.getPcuEquivalents(); }
@Override public double getSizeInEquivalents() { return vehicle.getType().getPcuEquivalents(); }
@Override public final void addFromWait(final QVehicle veh) { //To protect against calling addToBuffer() without calling hasFlowCapacityLeft() first. //This only could happen for addFromWait(), because it can be called from outside QueueWithBuffer if (flowcap_accumulate.getValue() <= 0.0 && veh.getVehicle().getType().getPcuEquivalents() > context.qsimConfig .getPcuThresholdForFlowCapacityEasing()) { throw new IllegalStateException("Buffer of link " + this.id + " has no space left!"); } addToBuffer(veh); }
public double getFlowCapacityConsumptionInEquivalents() { return vehicle.getType().getPcuEquivalents() / vehicle.getType().getFlowEfficiencyFactor(); }
private boolean hasFlowCapacityLeft(VisVehicle veh) { if(context.qsimConfig.isUsingFastCapacityUpdate() ){ updateFastFlowAccumulation(); } return flowcap_accumulate.getValue() > 0.0 || veh.getVehicle().getType() .getPcuEquivalents() <= context.qsimConfig.getPcuThresholdForFlowCapacityEasing(); }
this.writeStartTag(VehicleSchemaV1Names.DOOROPERATION, atts, true); atts.clear(); atts.add(this.createTuple(VehicleSchemaV1Names.PCE, vt.getPcuEquivalents())); this.writeStartTag(VehicleSchemaV1Names.PASSENGERCAREQUIVALENTS, atts, true); this.writeEndTag(VehicleSchemaV1Names.VEHICLETYPE);
assertEquals(42.42, vehType.getEgressTime(), EPSILON); assertEquals(DoorOperationMode.parallel, vehType.getDoorOperationMode()); assertEquals(2.0, vehType.getPcuEquivalents()); assertNull(vehType.getCapacity()); assertEquals(DoorOperationMode.serial, vehType.getDoorOperationMode()); assertEquals(1.0, vehType.getPcuEquivalents());