|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaskDistribution
The probability, reward and weight distributions of Tasks.
Each round a new batch of tasks is generated according to a TaskDistribution.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
double probability(Topology.City from,
Topology.City to)
from - the source of the taskto - the destination of the task, or null
int reward(Topology.City from,
Topology.City to)
from - the source of the taskto - the destination of the task
int weight(Topology.City from,
Topology.City to)
from - the source of the taskto - the destination of the task
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||