Skip to content

Commit

Permalink
making function accessible. refs #12
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 28, 2024
1 parent fce8692 commit 5e605c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/microsim/devices/MSDevice_Transportable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ MSDevice_Transportable::transferAtSplitOrJoin(MSBaseVehicle* otherVeh) {


bool
MSDevice_Transportable::willTransferAtJoin(const MSTransportable* t, const MSBaseVehicle* joinVeh) const {
MSDevice_Transportable::willTransferAtJoin(const MSTransportable* t, const MSBaseVehicle* joinVeh) {
if (joinVeh && t->getNumRemainingStages() > 1) {
MSStageDriving* const stage2 = dynamic_cast<MSStageDriving*>(t->getNextStage(1));
return stage2->isWaitingFor(joinVeh);
Expand Down
7 changes: 3 additions & 4 deletions src/microsim/devices/MSDevice_Transportable.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ class MSDevice_Transportable : public MSVehicleDevice {
return myTransportables;
}

/// @brief check if boardingDuration should be applied
static bool willTransferAtJoin(const MSTransportable* t, const MSBaseVehicle* joinVeh);

protected:
/** @brief Internal notification about the vehicle moves, see MSMoveReminder::notifyMoveInternal()
*
Expand All @@ -162,10 +165,6 @@ class MSDevice_Transportable : public MSVehicleDevice {
const double travelledDistanceVehicleOnLane,
const double meanLengthOnLane);

/// @brief check if boardingDuration should be applied
bool willTransferAtJoin(const MSTransportable* t, const MSBaseVehicle* joinVeh) const;


private:
/** @brief Constructor
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
options:
-->
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="0" vClass="rail" carFollowModel="Rail" trainType="custom" max="114e3" maxPower="2350" maxTraction="150"
resCoef_quadratic="0.28" resCoef_linear="0.03" resCoef_constant="1670"/>
<vType id="0" vClass="rail" carFollowModel="Rail" trainType="custom" maxPower="2350" maxTraction="150"
resCoef_quadratic="0.00028" resCoef_linear="0.00003" resCoef_constant="1.670"/>
<trip id="r0" depart="0.00" departLane="best" from="e0" to="e2" type="0"/>
</routes>

0 comments on commit 5e605c8

Please sign in to comment.