Skip to content

Blaham17 people parcels share - after project - #66

Open
F-I-D-O wants to merge 39 commits into
masterfrom
blaham17_people_parcels_share
Open

Blaham17 people parcels share - after project#66
F-I-D-O wants to merge 39 commits into
masterfrom
blaham17_people_parcels_share

Conversation

@F-I-D-O

@F-I-D-O F-I-D-O commented Feb 20, 2022

Copy link
Copy Markdown
Member

No description provided.

@@ -0,0 +1,83 @@
/*

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this class?

Comment on lines 102 to 109
// max distance in meters between vehicle and request for the vehicle to be considered to serve the request
// maxDistance = (double) config.ridesharing.maxProlongationInSeconds
// * agentpolisConfig.maxVehicleSpeedInMeters;

// the traveltime from vehicle to request cannot be greater than max prolongation in milliseconds for the
// vehicle to be considered to serve the request
// maxDelayTime = config.ridesharing.maxProlongationInSeconds * 1000;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not modify this!

this.positionUtil = positionUtil;
this.tripIdGenerator = tripIdGenerator;

public class RideSharingOnDemandVehicle<V extends PhysicalTransportVehicle> extends OnDemandVehicle<V>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have reformated the whole class here, so now I cannot see the diff. You have to convert the indent back to tabs and also change the settings in your IDE to use tabs.

}
}

public class InsertionHeuristicSolver extends DARPSolver implements EventHandler

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same problem here with the space indent

import cz.cvut.fel.aic.simod.entity.DemandAgent;
import cz.cvut.fel.aic.simod.traveltimecomputation.TravelTimeProvider;

public class PlanComputationRequestPeople extends DefaultPlanComputationRequest

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use DefaultPlanComputationRequest instead of this class, as there are no extra members.

/**
* returns sorted list of new taxi schedule (or null if the schedule is not feasible) and duration of this schedule
*/
private ScheduleWithDuration trySchedule(int taxiIndex, DefaultPlanComputationRequest newRequest)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method seems very inefficient, but if it is implemented according to the article, I guess we can leave it for now.

Comment on lines +17 to +18
protected final List<T> transportedEntities;
private final int vehiclePassengerCapacity;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use the infrastructure from parent for this

Comment on lines +46 to +63
public void setPosition(SimulationNode position)
{
super.setPosition(position);
Iterator var2 = this.transportedEntities.iterator();

while (var2.hasNext())
{
T transportedEntity = (T) var2.next(); // originally was (TransportableEntity)
transportedEntity.setPosition(position);
}
}


@Override
public List<T> getTransportedEntities()
{
return transportedEntities;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also for this

Comment on lines +81 to +89
public boolean isHighlited()
{
return this.highlited;
}

public void setHighlited(boolean highlited)
{
this.highlited = highlited;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And also for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants