|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Topology.City | |
|---|---|
| logist.history | |
| logist.plan | Allows to create plans that consist of a sequence of actions. |
| logist.simulation | |
| logist.task | Provides task generation, task distribution and task sets. |
| logist.topology | The topology of the Pickup and Delivery problem |
| Uses of Topology.City in logist.history |
|---|
| Methods in logist.history with parameters of type Topology.City | |
|---|---|
static Event |
Event.arrive(long time,
Vehicle vehicle,
Topology.City city)
|
| Uses of Topology.City in logist.plan |
|---|
| Methods in logist.plan with parameters of type Topology.City | |
|---|---|
void |
Plan.appendMove(Topology.City city)
Appends a move action to the plan |
java.lang.String[] |
PlanVerifier.moveTo(Topology.City targetCity)
|
T |
ActionHandler.moveTo(Topology.City city)
A move pattern |
| Constructors in logist.plan with parameters of type Topology.City | |
|---|---|
Action.Move(Topology.City destination)
Creates a move action |
|
Plan(Topology.City initialCity,
Action... actions)
Creates a simple plan from an initial city and a fixed number of actions. |
|
Plan(Topology.City initialCity,
java.util.List<Action> actions)
Creates a simple plan from an initial city and a list of actions. |
|
| Uses of Topology.City in logist.simulation |
|---|
| Methods in logist.simulation that return Topology.City | |
|---|---|
Topology.City |
VehicleImpl.getCurrentCity()
|
Topology.City |
Vehicle.getCurrentCity()
The current city of the vehicle |
Topology.City |
Vehicle.homeCity()
The starting location of the vehicle |
| Methods in logist.simulation with parameters of type Topology.City | |
|---|---|
java.lang.Boolean |
VehicleImpl.moveTo(Topology.City target)
|
| Constructors in logist.simulation with parameters of type Topology.City | |
|---|---|
VehicleImpl(int id,
java.lang.String name,
int capacity,
int costPerKm,
Topology.City home,
long speed,
java.awt.Color color)
|
|
| Uses of Topology.City in logist.task |
|---|
| Fields in logist.task declared as Topology.City | |
|---|---|
Topology.City |
Task.deliveryCity
The delivery location |
Topology.City |
Task.pickupCity
The pickup location |
| Methods in logist.task that return types with arguments of type Topology.City | |
|---|---|
java.util.List<Topology.City> |
Task.path()
The cities on the shortest path from the source of this task (excluding) to the destination (including). |
| Methods in logist.task with parameters of type Topology.City | |
|---|---|
Task |
DefaultTaskDistribution.createTask(Topology.City from)
|
double |
TaskDistribution.probability(Topology.City from,
Topology.City to)
Returns the probability that a task to to is available in city from. |
double |
DefaultTaskDistribution.probability(Topology.City from,
Topology.City to)
|
int |
TaskDistribution.reward(Topology.City from,
Topology.City to)
Returns the (expected) reward for a task between two cities. |
int |
DefaultTaskDistribution.reward(Topology.City from,
Topology.City to)
|
int |
TaskDistribution.weight(Topology.City from,
Topology.City to)
Returns the (expected) weight for a task between two cities. |
int |
DefaultTaskDistribution.weight(Topology.City from,
Topology.City to)
|
| Constructors in logist.task with parameters of type Topology.City | |
|---|---|
Task(int id,
Topology.City source,
Topology.City destination,
long reward,
int weight)
For system use only. |
|
| Uses of Topology.City in logist.topology |
|---|
| Methods in logist.topology that return Topology.City | |
|---|---|
Topology.City |
Topology.parseCity(java.lang.String name)
Find a city by name |
Topology.City |
Topology.randomCity(java.util.Random rnd)
Returns a random city in the topology |
Topology.City |
Topology.City.randomNeighbor(java.util.Random rnd)
Returns a random neighbor of this city. |
| Methods in logist.topology that return types with arguments of type Topology.City | |
|---|---|
java.util.List<Topology.City> |
Topology.cities()
Returns the list of all cities in the topology. |
java.util.Iterator<Topology.City> |
Topology.iterator()
An iterator over all cities in the topology. |
java.util.Iterator<Topology.City> |
Topology.City.iterator()
An iterator over all neighboring cities of this city. |
java.util.List<Topology.City> |
Topology.City.neighbors()
Returns the list of all neighbors. |
java.util.List<Topology.City> |
Topology.City.pathTo(Topology.City to)
Returns the list of cities on the shortest path from this city to another city. |
| Methods in logist.topology with parameters of type Topology.City | |
|---|---|
boolean |
Topology.contains(Topology.City city)
Checks whether a city is contained by this topology. |
double |
Topology.City.distanceTo(Topology.City to)
Returns the distance in kilometers from this city to another city. |
long |
Topology.City.distanceUnitsTo(Topology.City to)
Returns the distance in 'units' from this city to another city. |
boolean |
Topology.City.hasNeighbor(Topology.City city)
Determines whether another city is a neighbor of this city |
java.util.List<Topology.City> |
Topology.City.pathTo(Topology.City to)
Returns the list of cities on the shortest path from this city to another city. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||