|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.shared.ShuttleStrategyData
Represents the percent profit margin the shuttle negotiation uses to calculate an offer
| Field Summary | |
private float |
margin
the margin negotiation uses to calculate an offer |
static int |
PICKABACKIDENTIFIER
Identifier needed for generating the PickabackString and to recognize this class in a PickabackString |
| Fields inherited from interface de.upb.swtpra05.group03.shuttle.shared.PickabackInterface |
MEMBERVARSEPARATOR, OBJECTSEPARATOR |
| Constructor Summary | |
ShuttleStrategyData()
Constructor for the PluginGameConstants object |
|
ShuttleStrategyData(float newMargin)
Constructor for the ShuttleStrategyData object |
|
| Method Summary | |
static ShuttleStrategyData |
createShuttleDataFromPickaback(java.lang.String s)
Decodes a previosly encoded ShuttleStrategyData-Pickabackstring and returns the ShuttleStrategyData |
float |
getMargin()
Gets the margin attribute of the ShuttleStrategyData object |
void |
setMargin(float newMargin)
Sets the maximumStretch attribute of the PluginGameConstants object |
java.lang.String |
toPickabackString()
Description of the Method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private float margin
public static final int PICKABACKIDENTIFIER
| Constructor Detail |
public ShuttleStrategyData()
public ShuttleStrategyData(float newMargin)
newMargin - Description of the Parameter| Method Detail |
public void setMargin(float newMargin)
newMargin - The new margin valuepublic float getMargin()
public java.lang.String toPickabackString()
public static ShuttleStrategyData createShuttleDataFromPickaback(java.lang.String s)
s - a string-encoded ShuttleStrategyData
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||