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

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

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

This message is sent to the shuttles when the user wants one of his shuttles to stop working after finishing current orders or to restart working if the shuttle is inactive for the same reason.

See Also:
Serialized Form

Field Summary
private  boolean active
          the minimum margin to have
private static long serialVersionUID
          Comment for serialVersionUID
private  int shuttleID
          the margin that the shuttle shall use to calculate their offers
 
Constructor Summary
SetActivityOfShuttleMessage(int shuttleID, boolean active)
           
 
Method Summary
 int getShuttleID()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 void setShuttleID(int shuttleID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Comment for serialVersionUID

See Also:
Constant Field Values

shuttleID

private int shuttleID
the margin that the shuttle shall use to calculate their offers


active

private boolean active
the minimum margin to have

Constructor Detail

SetActivityOfShuttleMessage

public SetActivityOfShuttleMessage(int shuttleID,
                                   boolean active)
Parameters:
shuttleID - the ID of the shuttle to be influenced
active - the state of activity: true if shuttle shall be set active, false else
Method Detail

isActive

public boolean isActive()
Returns:
Returns the active.

setActive

public void setActive(boolean active)
Parameters:
active - The active to set.

getShuttleID

public int getShuttleID()
Returns:
Returns the shuttleID.

setShuttleID

public void setShuttleID(int shuttleID)
Parameters:
shuttleID - The shuttleID to set.