gui
Class Screen

java.lang.Object
  extended bygui.Screen
All Implemented Interfaces:
aos.jack.jak.event.EventSource, aos.jack.plugin.view.rt.ViewMarker

public class Screen
extends java.lang.Object
implements aos.jack.plugin.view.rt.ViewMarker, aos.jack.jak.event.EventSource

View to connect a customized JettyWindow to the rest of the agent system. The view contain methods that post event to the agent system, and that invoke methods in the JettyWindow

See Also:
JettyWindow

Field Summary
 aos.jack.jak.event.EventRecipient _event_recipient
           
 ShipArrival sAev
           
 
Constructor Summary
Screen()
          Constructor for Screen This constructor instaciate this applications window.
 
Method Summary
 aos.jack.jak.event.Event _findEvent(aos.jack.jak.event.EventRecipient er, java.lang.String en)
           
 boolean attach(aos.jack.jak.event.EventRecipient er)
           
 void displayShip(int berthId, Ship ship)
          Method for displaying a ship This method call an insert method in the JettyWindow, with the ship that should be displayed and id for the Berth it should be allocated to.
 java.lang.String getDocumentation()
           
 void initWindow(java.util.ArrayList berthList, java.util.ArrayList shipList)
          Method for initializing the JettyWindow This method call methods in the JettyWindow, with lists containing Ships and Berths
 void mooveShip(Ship ship)
          Method when a ship has changed information This method post an event to a plan for the GUI agent, to inform that ship information is changed
 void postEvent(aos.jack.jak.event.Event e)
           
 void submitShip(Ship ship)
          Method when a ship is submitted This method post an event to a plan for the GUI agent, to inform that ship information is submitted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_event_recipient

public aos.jack.jak.event.EventRecipient _event_recipient

sAev

public ShipArrival sAev
Constructor Detail

Screen

public Screen()
Constructor for Screen This constructor instaciate this applications window.

Method Detail

initWindow

public void initWindow(java.util.ArrayList berthList,
                       java.util.ArrayList shipList)
Method for initializing the JettyWindow This method call methods in the JettyWindow, with lists containing Ships and Berths


displayShip

public void displayShip(int berthId,
                        Ship ship)
Method for displaying a ship This method call an insert method in the JettyWindow, with the ship that should be displayed and id for the Berth it should be allocated to.


submitShip

public void submitShip(Ship ship)
Method when a ship is submitted This method post an event to a plan for the GUI agent, to inform that ship information is submitted


mooveShip

public void mooveShip(Ship ship)
Method when a ship has changed information This method post an event to a plan for the GUI agent, to inform that ship information is changed


getDocumentation

public java.lang.String getDocumentation()

postEvent

public void postEvent(aos.jack.jak.event.Event e)

attach

public boolean attach(aos.jack.jak.event.EventRecipient er)
Specified by:
attach in interface aos.jack.jak.event.EventSource

_findEvent

public aos.jack.jak.event.Event _findEvent(aos.jack.jak.event.EventRecipient er,
                                           java.lang.String en)