de.upb.swtpra05.group03.shuttle.messages
Class ApplyNewShuttleParamsMessage

java.lang.Object
  extended byde.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj
      extended byde.upb.swtpra05.group03.shuttle.messages.ApplyNewShuttleParamsMessage
All Implemented Interfaces:
java.io.Serializable

public class ApplyNewShuttleParamsMessage
extends de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj

This is an example message that is used to show how the companycontrol can send messages to the shuttles.

See Also:
Serialized Form

Field Summary
private  float margin
          the margin that the shuttle shall use to calculate their offers
private  float marginStep
          the size of the steps between to possible margins
private  float minMargin
          the minimum margin to have
private  int riscFactor
          the risc factor of the shuttles: 0 low, 1 medium, 2 high
private  boolean selfAdopt
          true when the shuttle shall self-adopt their strategy, false else
private static long serialVersionUID
          Comment for serialVersionUID
 
Constructor Summary
ApplyNewShuttleParamsMessage(float margin, float minMargin, float marginStep, int riscFactor, boolean selfAdopt)
          Constructor of ApplyNewShuttleParamsMessage
 
Method Summary
 float getMargin()
           
 float getMarginStep()
           
 float getMinMargin()
           
 int getRiscFactor()
           
 boolean isSelfAdopt()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Comment for serialVersionUID

See Also:
Constant Field Values

margin

private float margin
the margin that the shuttle shall use to calculate their offers


minMargin

private float minMargin
the minimum margin to have


marginStep

private float marginStep
the size of the steps between to possible margins


riscFactor

private int riscFactor
the risc factor of the shuttles: 0 low, 1 medium, 2 high


selfAdopt

private boolean selfAdopt
true when the shuttle shall self-adopt their strategy, false else

Constructor Detail

ApplyNewShuttleParamsMessage

public ApplyNewShuttleParamsMessage(float margin,
                                    float minMargin,
                                    float marginStep,
                                    int riscFactor,
                                    boolean selfAdopt)
Constructor of ApplyNewShuttleParamsMessage

Parameters:
margin - see above
minMargin - see above
marginStep - see above
riscFactor - see above
selfAdopt - see above
Method Detail

getMargin

public float getMargin()
Returns:
Returns the margin.

getMarginStep

public float getMarginStep()
Returns:
Returns the marginStep.

getMinMargin

public float getMinMargin()
Returns:
Returns the minMargin.

getRiscFactor

public int getRiscFactor()
Returns:
Returns the riscFactor.

isSelfAdopt

public boolean isSelfAdopt()
Returns:
Returns the selfAdopt.

toString

public java.lang.String toString()