de.upb.swtpra05.group03.companycontrol
Interface Control

All Known Implementing Classes:
ControlPanel

public interface Control

Interface of the Control Object.

Version:
$Revision: 1.3 $

Method Summary
 void reset()
          Method to reset all parts of the control panel.
 void setWaitState()
          Method to show output like "waiting for data" after starting to connect to the Kernel.
 void shuttleChosen(java.lang.String shuttle, int revenue)
          Method to react on changings concerning a marked row in the shuttle table.
 void stationChosen(java.lang.String station, int sellsFor)
          Method to react on changings concerning a marked row in the stock table.
 void updateShuttleList(java.util.Map shuttleList)
          Method to react on changings concerning the comapny's shuttles.
 void updateShuttleParams(float margin, float minMargin, float marginStep, int riskFactor, boolean selfAdopting)
          make the strategy panel update its parameters when new parameters from shuttles are received
 void updateShuttleStock(java.util.Map shuttleStock)
          Method to react on changings concerning the shuttle stock.
 

Method Detail

reset

public void reset()
Method to reset all parts of the control panel.


setWaitState

public void setWaitState()
Method to show output like "waiting for data" after starting to connect to the Kernel.


stationChosen

public void stationChosen(java.lang.String station,
                          int sellsFor)
Method to react on changings concerning a marked row in the stock table.

Parameters:
station - the marked station
sellsFor - the price the station sells a shuttle for

shuttleChosen

public void shuttleChosen(java.lang.String shuttle,
                          int revenue)
Method to react on changings concerning a marked row in the shuttle table.

Parameters:
shuttle - the marked shuttle
revenue - the sale revenue of the chosen shuttle

updateShuttleStock

public void updateShuttleStock(java.util.Map shuttleStock)
Method to react on changings concerning the shuttle stock.

Parameters:
shuttleStock - the current shuttle stock

updateShuttleList

public void updateShuttleList(java.util.Map shuttleList)
Method to react on changings concerning the comapny's shuttles.

Parameters:
shuttleList - the current company's shuttle list

updateShuttleParams

public void updateShuttleParams(float margin,
                                float minMargin,
                                float marginStep,
                                int riskFactor,
                                boolean selfAdopting)
make the strategy panel update its parameters when new parameters from shuttles are received

Parameters:
margin - the margin that the shuttle shall use to calculate their offers
minMargin - the minimum margin to have
marginStep - the size of the steps between to possible margins
riskFactor - the risc factor of the shuttles: 0 low, 1 medium, 2 high
selfAdopting -