nl.tudelft.simulation.dsol.gui.actions
Class SimulatorAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by nl.tudelft.simulation.dsol.gui.actions.SimulatorAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, EventListenerInterface
Direct Known Subclasses:
FastForwardAction, PauseAction, ResetAction, StartAction, StepAction, StopAction

public abstract class SimulatorAction
extends AbstractAction
implements EventListenerInterface

The basic simulatorAction
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:23:35 $
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
protected  DSOLApplicationInterface application
          the application
protected  SimulatorInterface simulator
          the simulator
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
SimulatorAction(String name, DSOLApplicationInterface application)
          constructs a new DEVSSimulatorAction
 
Method Summary
protected  void finalize()
           
 void notify(EventInterface event)
           
protected  void setSimulator(SimulatorInterface simulator)
          sets the simulator
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

simulator

protected SimulatorInterface simulator
the simulator


application

protected DSOLApplicationInterface application
the application

Constructor Detail

SimulatorAction

public SimulatorAction(String name,
                       DSOLApplicationInterface application)
constructs a new DEVSSimulatorAction

Parameters:
name - the name of the action
application - the application
Method Detail

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable
See Also:
Object.finalize()

setSimulator

protected void setSimulator(SimulatorInterface simulator)
sets the simulator

Parameters:
simulator - the simulator

notify

public void notify(EventInterface event)
Specified by:
notify in interface EventListenerInterface
See Also:
#notify(nl.tudelft.simulation.event.EventInterface)


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.