de.upb.swtpra05.group03.shuttle.messages
Class SetActivityOfShuttleMessage
java.lang.Object
de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj
de.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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SetActivityOfShuttleMessage
public SetActivityOfShuttleMessage(int shuttleID,
boolean active)
- Parameters:
shuttleID - the ID of the shuttle to be influencedactive - the state of activity: true if shuttle shall be set active,
false else
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.