Package jadex.bdi.examples.cleanerworld
Class AddWastePlugin
- java.lang.Object
-
- jadex.commons.SimplePropertyObject
-
- jadex.extension.envsupport.observer.gui.plugin.AbstractInteractionPlugin
-
- jadex.bdi.examples.cleanerworld.AddWastePlugin
-
- All Implemented Interfaces:
IPropertyObject
,IObserverCenterPlugin
public class AddWastePlugin extends AbstractInteractionPlugin
Plugin that allows for adding waste via mouse clicks.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.event.MouseListener
ml
-
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
-
-
Constructor Summary
Constructors Constructor Description AddWastePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIconPath()
Returns the path to the icon for the plugin in the toolbar.java.lang.String
getName()
Get the plugin name.java.awt.Component
getView()
Get the plugin view.protected void
initialize(ObserverCenter center)
Initializes the plugin.boolean
isStartOnLoad()
Should plugin be started on load.boolean
isVisible()
Should plugin be visible.void
shutdown()
Stops the plugin-
Methods inherited from class jadex.extension.envsupport.observer.gui.plugin.AbstractInteractionPlugin
addMouseListener, cleanUp, getWorldCoordinates, handleObjectClick, refresh, removeMouseListener, start, startUp
-
Methods inherited from class jadex.commons.SimplePropertyObject
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
-
-
-
-
Method Detail
-
initialize
protected void initialize(ObserverCenter center)
Initializes the plugin. This method is invoked once when the ObserverCenter becomes available.- Specified by:
initialize
in classAbstractInteractionPlugin
- Parameters:
center
- The OberverCenter.
-
shutdown
public void shutdown()
Description copied from interface:IObserverCenterPlugin
Stops the plugin- Specified by:
shutdown
in interfaceIObserverCenterPlugin
- Overrides:
shutdown
in classAbstractInteractionPlugin
-
getName
public java.lang.String getName()
Get the plugin name.- Returns:
- name of the plugin
-
getIconPath
public java.lang.String getIconPath()
Description copied from interface:IObserverCenterPlugin
Returns the path to the icon for the plugin in the toolbar.- Specified by:
getIconPath
in interfaceIObserverCenterPlugin
- Overrides:
getIconPath
in classAbstractInteractionPlugin
- Returns:
- path to the icon
-
getView
public java.awt.Component getView()
Get the plugin view.- Returns:
- viewable component of the plugin
-
isVisible
public boolean isVisible()
Should plugin be visible.
-
isStartOnLoad
public boolean isStartOnLoad()
Should plugin be started on load.
-
-