All Packages Class Hierarchy This Package Previous Next Index
Class examples.warehouse.GUI.Wrhsaplt
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----examples.warehouse.GUI.Wrhsaplt
- public class Wrhsaplt
- extends Applet
- implements ActionListener, WindowListener, Observer
Graphical UI for Warehouse simulation, example for JSL 2.0
-
Wrhsaplt()
-
-
actionPerformed(ActionEvent)
- Method to handle events for the ActionListener interface.
-
getAppletInfo()
- Gets the applet information.
-
init()
- Handle the Applet init method.
-
interrupt()
- Stop the eimulation and kill all active thread.
-
isapplet()
- Am I an applet or an autonomous program ?
-
isapplet(boolean)
- Am I an applet or an autonomous program ?
-
isnotapplet()
- Am I an applet or an autonomous program ?
-
main(String[])
- main entrypoint - starts the part when it is run as an application
-
simulate(double, double, int, int, int, int, int, double, int)
- Start the simulation
-
termina()
- Ends the execution of the program
-
update(Observable, Object)
- Called by observables (Simulation).
-
windowActivated(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowClosed(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowClosing(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowDeactivated(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowDeiconified(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowIconified(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowOpened(WindowEvent)
- Method to handle events for the WindowListener interface.
Wrhsaplt
public Wrhsaplt()
actionPerformed
public void actionPerformed(ActionEvent e)
- Method to handle events for the ActionListener interface.
- Parameters:
- e - java.awt.event.ActionEvent
getAppletInfo
public String getAppletInfo()
- Gets the applet information.
- Returns:
- java.lang.String
- Overrides:
- getAppletInfo in class Applet
init
public void init()
- Handle the Applet init method.
- Overrides:
- init in class Applet
interrupt
public void interrupt()
- Stop the eimulation and kill all active thread. Can't be used in an applet for security restrictions
isapplet
public boolean isapplet()
- Am I an applet or an autonomous program ?
- Returns:
- boolean True if not started from
main
isapplet
public void isapplet(boolean isapplet)
- Am I an applet or an autonomous program ?
- Parameters:
- isapplet - True to set the status as applet
isnotapplet
public boolean isnotapplet()
- Am I an applet or an autonomous program ?
- Returns:
- boolean True if started from
main
main
public static void main(String args[])
- main entrypoint - starts the part when it is run as an application
- Parameters:
- args - java.lang.String[]
simulate
public void simulate(double arr,
double rem,
int in1,
int in2,
int out1,
int out2,
int m,
double simperiod,
int seed)
- Start the simulation
- Parameters:
- arr - double Arrivals frequency
- rem - double Removals frequency
- in1 - int Lower boud for incoming batches
- in2 - int Upper boud for incoming batches
- out1 - int Lowerer boud for outgoing batches
- out2 - int Upper boud for outgoing batches
- m - int Warehouse size
- simperiod - double Simulation length
- seed - int Seed for random generator
termina
public void termina()
- Ends the execution of the program
update
public void update(Observable o,
Object arg)
- Called by observables (Simulation).
- Parameters:
- o - Caller
- arg - Parameter. If the caller is a Simulation, arg is the active process
windowActivated
public void windowActivated(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowClosed
public void windowClosed(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowClosing
public void windowClosing(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowDeactivated
public void windowDeactivated(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowDeiconified
public void windowDeiconified(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowIconified
public void windowIconified(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowOpened
public void windowOpened(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
All Packages Class Hierarchy This Package Previous Next Index