|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.Company
This class represents a company with one or more shuttles and stores the count and the ids of the associated shuttles.
| Field Summary | |
private java.util.SortedSet |
associateIDs
The Associates of the shuttle |
private static java.util.logging.Logger |
log
Logger for debugging |
| Constructor Summary | |
Company()
Constructor |
|
| Method Summary | |
java.util.SortedSet |
getAssociateIDs()
Returns a sorted set containing the associate IDs of the shuttle. |
int |
getCompanySize()
Returns the company size. |
void |
init(ModuleContainerInterface container)
Initializes this module. |
void |
newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
React on the received message of the shuttle or not. |
private void |
newShuttle(NewShuttleMessage msg)
Adds the new shuttle to the associate ids. |
private void |
shuttleAssociates(de.upb.swtpra.kernel.message.ShuttleAssociates msg)
Sets the associate ids. |
private void |
shuttleDisqualified(de.upb.swtpra.kernel.message.ShuttleDisqualifiedMessage msg)
Removes the disqualified shuttle from the associate ids. |
private void |
shuttleSold(de.upb.swtpra.kernel.message.ShuttleSoldMessage msg)
Removes the sold shuttle from the associate ids. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.util.logging.Logger log
private java.util.SortedSet associateIDs
| Constructor Detail |
public Company()
| Method Detail |
public void init(ModuleContainerInterface container)
Module
init in interface Modulecontainer - The module manager which contain all modulespublic void newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
ShuttleModule
newMessageReceived in interface ShuttleModulemsg - The received message of the shuttleprivate void shuttleSold(de.upb.swtpra.kernel.message.ShuttleSoldMessage msg)
msg - The ShuttleSoldMessageprivate void shuttleDisqualified(de.upb.swtpra.kernel.message.ShuttleDisqualifiedMessage msg)
msg - The ShuttleDisqualifiedMessageprivate void newShuttle(NewShuttleMessage msg)
msg - The NewShuttleMessageprivate void shuttleAssociates(de.upb.swtpra.kernel.message.ShuttleAssociates msg)
msg - The ShuttleAssociates messagepublic java.util.SortedSet getAssociateIDs()
CompanyInterface
getAssociateIDs in interface CompanyInterfacepublic int getCompanySize()
CompanyInterface
getCompanySize in interface CompanyInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||