Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blaham17 people parcels share - after project #66

Open
wants to merge 39 commits into
base: master
Choose a base branch
from

Conversation

F-I-D-O
Copy link
Member

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

No description provided.

@@ -0,0 +1,83 @@
/*
Copy link
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
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
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
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
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
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
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
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
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.

None yet

2 participants