de.upb.swtpra05.group03.shuttle.shared
Class PluginGameConstants

java.lang.Object
  extended byde.upb.swtpra05.group03.shuttle.shared.PluginGameConstants
All Implemented Interfaces:
PickabackInterface

public class PluginGameConstants
extends java.lang.Object
implements PickabackInterface

single class to send infos to the plugin

Version:
$Revision: 1.3 $

Field Summary
private static int maximumLoad
          the maximum number of loaded passengers
private static int maximumStretch
          the maximum stretch of the shuttle
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
PluginGameConstants()
          Constructor for the PluginGameConstants object
PluginGameConstants(int newMaximumStretch, int newMaximumLoad)
          Constructor for the PluginGameConstants object
 
Method Summary
static PluginGameConstants createPluginGameConstantsFromPickaback(java.lang.String s)
          Decodes a previosly encoded ExtendedOrder-Pickabackstring and returns the ExtendedOrder
 int getMaximumLoad()
          Gets the maximumLoad attribute of the PluginGameConstants object
 int getMaximumStretch()
          Gets the maximumStretch attribute of the PluginGameConstants object
 void setMaximumLoad(int newMaximumLoad)
          Sets the maximumLoad attribute of the PluginGameConstants object
 void setMaximumStretch(int newMaximumStretch)
          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

maximumStretch

private static int maximumStretch
the maximum stretch of the shuttle


maximumLoad

private static int maximumLoad
the maximum number of loaded passengers


PICKABACKIDENTIFIER

public static final int PICKABACKIDENTIFIER
Identifier needed for generating the PickabackString and to recognize this class in a PickabackString

See Also:
Constant Field Values
Constructor Detail

PluginGameConstants

public PluginGameConstants()
Constructor for the PluginGameConstants object


PluginGameConstants

public PluginGameConstants(int newMaximumStretch,
                           int newMaximumLoad)
Constructor for the PluginGameConstants object

Parameters:
newMaximumStretch - Description of the Parameter
newMaximumLoad - Description of the Parameter
Method Detail

setMaximumStretch

public void setMaximumStretch(int newMaximumStretch)
Sets the maximumStretch attribute of the PluginGameConstants object

Parameters:
newMaximumStretch - The new maximumStretch value

setMaximumLoad

public void setMaximumLoad(int newMaximumLoad)
Sets the maximumLoad attribute of the PluginGameConstants object

Parameters:
newMaximumLoad - The new maximumLoad value

getMaximumStretch

public int getMaximumStretch()
Gets the maximumStretch attribute of the PluginGameConstants object

Returns:
The maximumStretch value

getMaximumLoad

public int getMaximumLoad()
Gets the maximumLoad attribute of the PluginGameConstants object

Returns:
The maximumLoad value

toPickabackString

public java.lang.String toPickabackString()
Description of the Method

Returns:
Description of the Return Value

createPluginGameConstantsFromPickaback

public static PluginGameConstants createPluginGameConstantsFromPickaback(java.lang.String s)
Decodes a previosly encoded ExtendedOrder-Pickabackstring and returns the ExtendedOrder

Parameters:
s - a string-encoded ExtendedOrder
Returns:
the decoded ExtendedOrder