public class AwarenessAgentPanel
extends java.lang.Object
implements jadex.base.gui.componentviewer.IComponentViewerPanel, jadex.base.gui.componentviewer.IServiceViewerPanel
Modifier and Type | Class and Description |
---|---|
class |
AwarenessAgentPanel.AddRemoveAction
Action to add or remote an entry to/from the includes/excludes list.
|
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JButton |
buapply
The apply button.
|
protected javax.swing.JCheckBox |
cbautocreate
The auto create check box.
|
protected javax.swing.JCheckBox |
cbautodelete
The auto delete check box.
|
protected javax.swing.JCheckBox |
cbfast
The fast awareness check box.
|
protected javax.swing.JCheckBox[] |
cbmechanisms
The discovery mechanisms.
|
protected jadex.commons.gui.EditableList |
excludes
The excludes list.
|
protected jadex.platform.service.awareness.management.AwarenessManagementAgentHelper |
helper
The Helper for GUI-independent tasks.
|
protected jadex.commons.gui.EditableList |
includes
The includes list.
|
protected javax.swing.JTable |
jtdis
The discovery info table.
|
protected javax.swing.JComponent |
panel
The complete awareness panel.
|
static java.lang.String |
PROPERTY_GUI_REFRESH
The property key for the settings object.
|
protected jadex.platform.service.awareness.management.AwarenessSettingsData |
settings
The latest settings of the agent.
|
protected javax.swing.JSpinner |
spdelay
The delay spinner.
|
protected javax.swing.JSpinner |
sprefresh
The refresh delay spinner.
|
protected javax.swing.Timer |
timer
The update timer.
|
protected int |
timerdelay
The timer delay.
|
Constructor and Description |
---|
AwarenessAgentPanel() |
Modifier and Type | Method and Description |
---|---|
protected void |
applySettings()
Apply current settings to agent
|
javax.swing.JComponent |
getComponent()
The component to be shown in the gui.
|
java.lang.String |
getId()
The id used for mapping properties.
|
jadex.commons.future.IFuture<jadex.commons.Properties> |
getProperties()
Advices the panel provide its setting as properties (if any).
|
jadex.commons.future.IFuture<java.lang.Void> |
init(jadex.base.gui.plugin.IControlCenter jcc,
jadex.bridge.IExternalAccess component)
Called once to initialize the panel.
|
jadex.commons.future.IFuture<java.lang.Void> |
init(jadex.base.gui.plugin.IControlCenter jcc,
jadex.bridge.service.IService service)
Called once to initialize the panel.
|
protected jadex.commons.future.IFuture<java.lang.Void> |
refreshSettings()
Get the current settings from the agent and update the GUI.
|
jadex.commons.future.IFuture<java.lang.Void> |
setProperties(jadex.commons.Properties ps)
Advices the the panel to restore its properties from the argument
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdown()
Informs the panel that it should stop all its computation
|
protected void |
updateDiscoveryInfos(javax.swing.JTable jtdis)
Update the discovery infos.
|
protected void |
updateDiscoveryMechanisms()
Update the discovery mechanisms.
|
protected void |
updateSettings(jadex.platform.service.awareness.management.AwarenessSettingsData settings)
Apply settings to GUI.
|
public static final java.lang.String PROPERTY_GUI_REFRESH
protected javax.swing.Timer timer
protected int timerdelay
protected jadex.platform.service.awareness.management.AwarenessSettingsData settings
protected javax.swing.JTable jtdis
protected javax.swing.JSpinner spdelay
protected javax.swing.JCheckBox cbfast
protected javax.swing.JCheckBox cbautocreate
protected javax.swing.JCheckBox cbautodelete
protected javax.swing.JSpinner sprefresh
protected jadex.commons.gui.EditableList includes
protected jadex.commons.gui.EditableList excludes
protected javax.swing.JComponent panel
protected javax.swing.JButton buapply
protected javax.swing.JCheckBox[] cbmechanisms
protected jadex.platform.service.awareness.management.AwarenessManagementAgentHelper helper
public jadex.commons.future.IFuture<java.lang.Void> init(jadex.base.gui.plugin.IControlCenter jcc, jadex.bridge.service.IService service)
init
in interface jadex.base.gui.componentviewer.IServiceViewerPanel
jcc
- The jcc.service
- The service.public jadex.commons.future.IFuture<java.lang.Void> init(jadex.base.gui.plugin.IControlCenter jcc, jadex.bridge.IExternalAccess component)
init
in interface jadex.base.gui.componentviewer.IComponentViewerPanel
jcc
- The jcc.component
- The component.public jadex.commons.future.IFuture<java.lang.Void> shutdown()
shutdown
in interface jadex.base.gui.componentviewer.IAbstractViewerPanel
public java.lang.String getId()
getId
in interface jadex.base.gui.componentviewer.IAbstractViewerPanel
public javax.swing.JComponent getComponent()
getComponent
in interface jadex.base.gui.componentviewer.IAbstractViewerPanel
public jadex.commons.future.IFuture<java.lang.Void> setProperties(jadex.commons.Properties ps)
setProperties
in interface jadex.commons.IPropertiesProvider
public jadex.commons.future.IFuture<jadex.commons.Properties> getProperties()
getProperties
in interface jadex.commons.IPropertiesProvider
protected jadex.commons.future.IFuture<java.lang.Void> refreshSettings()
protected void updateDiscoveryInfos(javax.swing.JTable jtdis)
protected void updateDiscoveryMechanisms()
protected void applySettings()
protected void updateSettings(jadex.platform.service.awareness.management.AwarenessSettingsData settings)