A B C D F G H I L M O P R S U W

A

actionPerformed(ActionEvent) - Method in class lrw.msg.org.Controller
 
addData(String[]) - Method in class lwr.gui.org.HighwaySimulator
prints data of each mote on the simulator when fog is detected then the background of the field will change from green to red
attach(Observer) - Method in class lrw.msg.org.MessageFormater
each observer object that wants to register himself by a subject has to call the attach function, otherwise the subject will not be able to inform it when that state in our when it receives an new message
attach(Observer) - Method in interface lrw.msg.org.Subject
 

B

BitmapComponent - class lwr.gui.org.BitmapComponent.
 
BitmapComponent(String) - Constructor for class lwr.gui.org.BitmapComponent
 

C

CarComponent - class lwr.gui.org.CarComponent.
 
CarComponent(String) - Constructor for class lwr.gui.org.CarComponent
 
Controller - class lrw.msg.org.Controller.
 
Controller(MessageFormater) - Constructor for class lrw.msg.org.Controller
 
cp - Variable in class lwr.gui.org.HighwaySimulator
 
createInitMsg() - Method in class lrw.msg.org.MessageFormater
creates the init message that is used to initialize the mote network

D

DewPoint - class lrw.msg.org.DewPoint.
 
DewPoint() - Constructor for class lrw.msg.org.DewPoint
 

F

fireUpdate() - Method in class lrw.msg.org.MessageFormater
informs the observer object on receiving new messages from the motes
fireUpdate() - Method in interface lrw.msg.org.Subject
 

G

getDewPoint() - Method in class lrw.msg.org.DewPoint
getDewPoint returns the dewpoint
getFodesyMsg() - Method in class lrw.msg.org.MessageFormater
 
getMinimumSize() - Method in class lwr.gui.org.BitmapComponent
 
getMinimumSize() - Method in class lwr.gui.org.CarComponent
 
getMote() - Method in class lrw.msg.org.MessageFormater
 
getMoteData() - Method in class lrw.msg.org.MessageFormater
will be called by the controller on update and sends the data array to the gui
getMoteData() - Method in interface lrw.msg.org.Subject
 
getPreferredSize() - Method in class lwr.gui.org.BitmapComponent
 
getPreferredSize() - Method in class lwr.gui.org.CarComponent
 
getRelativeHum(short[]) - Method in class lrw.msg.org.DewPoint
getRelativeHum return the relative humidity in %
getTemperature(short[]) - Method in class lrw.msg.org.DewPoint
getTemperature returns the current temperature in ??C

H

HighwaySimulator - class lwr.gui.org.HighwaySimulator.
 
HighwaySimulator(Controller) - Constructor for class lwr.gui.org.HighwaySimulator
 

I

isFog(double, double) - Method in class lrw.msg.org.DewPoint
 

L

lrw.msg.org - package lrw.msg.org
 
lwr.gui.org - package lwr.gui.org
 

M

Main - class lrw.msg.org.Main.
 
Main() - Constructor for class lrw.msg.org.Main
 
MessageFormater - class lrw.msg.org.MessageFormater.
 
MessageFormater() - Constructor for class lrw.msg.org.MessageFormater
 
main(String[]) - Static method in class lrw.msg.org.Main
 
messageReceived(int, Message) - Method in class lrw.msg.org.MessageFormater
notifies MessageFormater when a new message has been received (non-Javadoc)

O

Observer - interface lrw.msg.org.Observer.
 

P

paint(Graphics) - Method in class lwr.gui.org.BitmapComponent
 
paint(Graphics) - Method in class lwr.gui.org.CarComponent
 
paint(Graphics) - Method in class lwr.gui.org.SimField
 

R

run() - Method in class lwr.gui.org.HighwaySimulator
run method is always invoked by the thread.start() function repaints the simulator picture every 40ms when no fog is on the highway, if there is one repaint will be called every 70ms so that it looks like that the cars are driving slowlier

S

SimField - class lwr.gui.org.SimField.
 
SimField() - Constructor for class lwr.gui.org.SimField
 
Subject - interface lrw.msg.org.Subject.
 
sendMsg(FodesyMsg) - Method in class lrw.msg.org.MessageFormater
sends a message to the mote connected to the pc
setController(Controller) - Method in class lwr.gui.org.HighwaySimulator
controller is needed to control the dataflow between the model (MessageFormater) and the gui
setMote(int) - Method in class lwr.gui.org.SimField
when a mote is initialized than it will also appear on the screen
setMoteData(String[]) - Method in class lrw.msg.org.MessageFormater
sets the data that will be displayed afterwards by the gui into moteData array
setRegisteredMote(int) - Method in class lwr.gui.org.HighwaySimulator
each mote the got the init message will be shown on the highway simulator
setSim(HighwaySimulator) - Method in class lrw.msg.org.Controller
opens the gui
simField - Variable in class lwr.gui.org.HighwaySimulator
 
startCar() - Method in class lwr.gui.org.CarComponent
 
startCar() - Method in class lwr.gui.org.SimField
 
startHighwayAnim() - Method in class lwr.gui.org.HighwaySimulator
starts the animation

U

unsetMote(int) - Method in class lwr.gui.org.SimField
 
unsetRegisteredMote(int) - Method in class lwr.gui.org.HighwaySimulator
if the mote dies, it disappear on the screen/simulator
update(Subject) - Method in class lrw.msg.org.Controller
will be invoked by the subject -> MessageFormater
update(Subject) - Method in interface lrw.msg.org.Observer
 

W

WindowClosingAdapter - class lwr.gui.org.WindowClosingAdapter.
 
WindowClosingAdapter(boolean) - Constructor for class lwr.gui.org.WindowClosingAdapter
 
WindowClosingAdapter() - Constructor for class lwr.gui.org.WindowClosingAdapter
 
windowClosing(WindowEvent) - Method in class lwr.gui.org.WindowClosingAdapter
 

A B C D F G H I L M O P R S U W