|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlogist.task.DefaultTaskDistribution
public class DefaultTaskDistribution
A task distribution and a task generator that are based on task frequencies.
| Constructor Summary | |
|---|---|
DefaultTaskDistribution(Topology topology,
java.util.Random random,
double[][] f,
double[][] r,
double[][] w,
double[] n)
|
|
| Method Summary | |
|---|---|
Task |
createTask()
|
Task |
createTask(Topology.City from)
|
TaskSet |
createTaskSet(int size)
|
TaskSet |
createTaskSet(Task[] tasks)
|
java.util.Random |
getRandom()
|
double |
probability(Topology.City from,
Topology.City to)
Returns the probability that a task to to is available in city from. |
int |
reward(Topology.City from,
Topology.City to)
Returns the (expected) reward for a task between two cities. |
int |
weight(Topology.City from,
Topology.City to)
Returns the (expected) weight for a task between two cities. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTaskDistribution(Topology topology,
java.util.Random random,
double[][] f,
double[][] r,
double[][] w,
double[] n)
| Method Detail |
|---|
public double probability(Topology.City from,
Topology.City to)
TaskDistribution
probability in interface TaskDistributionfrom - the source of the taskto - the destination of the task, or null
public int reward(Topology.City from,
Topology.City to)
TaskDistribution
reward in interface TaskDistributionfrom - the source of the taskto - the destination of the task
public int weight(Topology.City from,
Topology.City to)
TaskDistribution
weight in interface TaskDistributionfrom - the source of the taskto - the destination of the taskpublic Task createTask(Topology.City from)
public TaskSet createTaskSet(int size)
public TaskSet createTaskSet(Task[] tasks)
public Task createTask()
public java.util.Random getRandom()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||