|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
de.upb.swtpra.visualisation.visualisation.plugin.PluginBase
de.upb.swtpra05.group03.plugin.ICabSShuttlePlugin
This plugin will be loaded to display many informations about the CompanyShuttle in the visualisation client.
| Field Summary | |
private AccountData |
aD
Used to cache information retrieved in the method |
private AccountPanel |
aP
A component to display events on the bank account, that includes service, toll, penalty and profit events |
private OrderPanel |
oP
A complex tree-like component to display all information we have about the orders our shuttle currently have. |
private RoutingPanel |
rP
A list component to display the planned routing |
private ShuttleStatusPanel |
sP
A component to display the current stretch, the current load and the margin of the shuttle |
| Fields inherited from class de.upb.swtpra.visualisation.visualisation.plugin.PluginBase |
pluginPanel, running |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ICabSShuttlePlugin()
The constructor for the class CompanyShuttlePlugin, used to initialize and set up the GridBagLayout and create the used panels. |
|
| Method Summary | |
private void |
clearDataHolder()
This method will clear all data in the DataHolder. |
private void |
handleRemoteShuttleMoved(de.upb.swtpra.kernel.visualisation.RemoteShuttleMoved rsm)
This method handles all RemoteShuttleMoved messages the plugin receives. |
private void |
handleRemoteShuttleStatusChanged(de.upb.swtpra.kernel.visualisation.RemoteShuttleStatusChanged rssc)
This method handles all RemoteShuttleStatusChanged messages the plugin receives |
private void |
handleRemoteShuttleStatusString(de.upb.swtpra.kernel.visualisation.RemoteShuttleStatusString rsss)
This method handles all RemoteShuttleStatusString messages the plugin receives. |
private java.awt.GridBagConstraints |
makeGBC(int gridx,
int gridy)
Helper method to create a GridBagConstraints with some standard values. |
private java.awt.GridBagConstraints |
makeGBC(int gridx,
int gridy,
int weighty)
Helper method to create a GridBagConstraints with some standard values. |
void |
run()
The plugin can be a thread in the visualisationclient. |
void |
update(de.upb.swtpra.kernel.visualisation.RemoteObj o)
New messages will be sended to the plugin by calling this method. |
| Methods inherited from class de.upb.swtpra.visualisation.visualisation.plugin.PluginBase |
getPluginPanel, isRunning, stopPlugin |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private OrderPanel oP
private AccountPanel aP
private RoutingPanel rP
private ShuttleStatusPanel sP
private AccountData aD
CompanyShuttlePlugin#handleRemoteShuttleMoved(RemoteShuttleMoved)| Constructor Detail |
public ICabSShuttlePlugin()
| Method Detail |
private java.awt.GridBagConstraints makeGBC(int gridx,
int gridy)
gridx - The x-axis positiongridy - The y-axis position
private java.awt.GridBagConstraints makeGBC(int gridx,
int gridy,
int weighty)
gridx - The x-axis positiongridy - The y-axis positionweighty - The weight on the y-axis
public void run()
run in interface java.lang.Runnablepublic void update(de.upb.swtpra.kernel.visualisation.RemoteObj o)
o - A remote object containing new information about the simulation. o can have
the following types: RemoteOrderAssigned, RemoteShuttleMoved, RemoteShuttleStatusChanged,
RemoteShuttleStatusString, RemoteShuttleBankrupt, RemoteShuttleDisqualified or RemoteGameConstants.private void handleRemoteShuttleMoved(de.upb.swtpra.kernel.visualisation.RemoteShuttleMoved rsm)
rsm - a RemoteShuttleMoved messageprivate void handleRemoteShuttleStatusString(de.upb.swtpra.kernel.visualisation.RemoteShuttleStatusString rsss)
rsss - a RemoteShuttleStatusString messageprivate void handleRemoteShuttleStatusChanged(de.upb.swtpra.kernel.visualisation.RemoteShuttleStatusChanged rssc)
rssc - a RemoteShuttleStatusChanged messageprivate void clearDataHolder()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||