logist.task
Interface TaskDistribution

All Known Implementing Classes:
DefaultTaskDistribution

public interface TaskDistribution

The probability, reward and weight distributions of Tasks. Each round a new batch of tasks is generated according to a TaskDistribution.

Author:
Robin Steiger

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

probability

double probability(Topology.City from,
                   Topology.City to)
Returns the probability that a task to to is available in city from. If to is null then the probability that there is no task available in city from is returned.

Parameters:
from - the source of the task
to - the destination of the task, or null

reward

int reward(Topology.City from,
           Topology.City to)
Returns the (expected) reward for a task between two cities.

Parameters:
from - the source of the task
to - the destination of the task

weight

int weight(Topology.City from,
           Topology.City to)
Returns the (expected) weight for a task between two cities.

Parameters:
from - the source of the task
to - the destination of the task