public class TimeManager
extends java.lang.Object
Constructor and Description |
---|
TimeManager(Timeline timeline,
double discount,
BidsCollection bidsCollection)
Creates a TimeManager-object which stores the timeline of the negotiation.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateEndPhases()
Calculates the time which should be spend on each phase based on
the distribution of the utilities of the bids.
|
void |
calculatePropArray()
Calculate how many possible bids are within a certain threshold interval.
|
int |
getMovesLeft() |
int |
getPhase(double time)
Returns the current phase of the negotiation.
|
double |
getThreshold(double time)
Returns the time dependent threshold which specifies how good a
bid of an opponent should be to be accepted.
|
double |
getTime() |
public TimeManager(Timeline timeline, double discount, BidsCollection bidsCollection)
timeline
- of the negotiationpublic int getPhase(double time)
public double getThreshold(double time)
public int getMovesLeft()
public void calculatePropArray()
public void calculateEndPhases()
public double getTime()