|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.BestShuttleOfferPrice
Structure to hold the id of a shuttle and its offerPrice
| Field Summary | |
private int |
offerPrice
the offer price of the shuttle |
private de.upb.swtpra.kernel.id.ID |
shuttleID
the id of the shuttleID |
private int |
updateCounter
number of compared offerPrice |
| Constructor Summary | |
BestShuttleOfferPrice(de.upb.swtpra.kernel.id.ID shuttleID,
int offerPrice)
Default Constructor |
|
| Method Summary | |
int |
getOfferPrice()
Returns the offerPrice of the shuttle |
de.upb.swtpra.kernel.id.ID |
getShuttleID()
Returns the id of the shuttle |
int |
getUpdateCounter()
|
void |
update(de.upb.swtpra.kernel.id.ID shuttleId,
int shuttleOfferPrice)
Update the best shuttle bestOfferPrices |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private de.upb.swtpra.kernel.id.ID shuttleID
private int offerPrice
private int updateCounter
| Constructor Detail |
public BestShuttleOfferPrice(de.upb.swtpra.kernel.id.ID shuttleID,
int offerPrice)
shuttleID - the id of the shuttleofferPrice - the offerPrice of the shuttle| Method Detail |
public de.upb.swtpra.kernel.id.ID getShuttleID()
public int getOfferPrice()
public void update(de.upb.swtpra.kernel.id.ID shuttleId,
int shuttleOfferPrice)
shuttleId - the id of the shuttleshuttleOfferPrice - the offerPrice of the shuttlepublic int getUpdateCounter()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||