lrw.msg.org
Class Controller

java.lang.Object
  extended bylrw.msg.org.Controller
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, Observer

public class Controller
extends java.lang.Object
implements Observer, java.awt.event.ActionListener


Constructor Summary
Controller(MessageFormater msgFormater)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void setSim(HighwaySimulator sim)
          opens the gui
 void update(Subject subject)
          will be invoked by the subject -> MessageFormater
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller(MessageFormater msgFormater)
Method Detail

update

public void update(Subject subject)
will be invoked by the subject -> MessageFormater

Specified by:
update in interface Observer

setSim

public void setSim(HighwaySimulator sim)
opens the gui

Parameters:
sim -

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener