EASE.Agents.Specification
Class AgentSpecification

java.lang.Object
  |
  +--EASE.Agents.Specification.AgentSpecification

public class AgentSpecification
extends java.lang.Object
implements java.awt.event.ActionListener, Constants

Main class for Single Agent Specification GUI


Field Summary
private  ActivationChooser actChoose
           
private  BasicPanel basicPanel
           
private  javax.swing.JPanel buttonP
           
 javax.swing.JButton cancelB
           
private  Configuration config
           
 javax.swing.JButton deleteB
           
(package private)  ShowContract dialog
           
private  javax.swing.JFrame frame
           
(package private)  java.awt.GridBagConstraints gbc
           
private  javax.swing.JPanel mainPanel
          Overload the getPreferredSize code in this Panel to update preferred sizes.
 javax.swing.JButton okB
           
private  Agent previous
           
private  SMPanel smPanel
           
private  javax.swing.JPanel smPanelHolder
           
 
Constructor Summary
AgentSpecification(javax.swing.JFrame frame)
           
AgentSpecification(javax.swing.JFrame frame, Agent previous)
          Constructor for an existing agent (e.g Edit) basically sets all components correctly.
 
Method Summary
(package private)  void ()
           
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void activationChanged()
           
 Agent getAgent()
          Get the agent created in this specification.
 javax.swing.JPanel getPanel()
           
 Agent getPrevious()
          return the agent that was here before editing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

previous

private Agent previous

actChoose

private ActivationChooser actChoose

dialog

ShowContract dialog

config

private Configuration config

buttonP

private javax.swing.JPanel buttonP

smPanelHolder

private javax.swing.JPanel smPanelHolder

mainPanel

private javax.swing.JPanel mainPanel
Overload the getPreferredSize code in this Panel to update preferred sizes.


basicPanel

private BasicPanel basicPanel

smPanel

private SMPanel smPanel

frame

private javax.swing.JFrame frame

okB

public javax.swing.JButton okB

cancelB

public javax.swing.JButton cancelB

deleteB

public javax.swing.JButton deleteB

gbc

java.awt.GridBagConstraints gbc
Constructor Detail

AgentSpecification

public AgentSpecification(javax.swing.JFrame frame)

AgentSpecification

public AgentSpecification(javax.swing.JFrame frame,
                          Agent previous)
Constructor for an existing agent (e.g Edit) basically sets all components correctly.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getAgent

public Agent getAgent()
Get the agent created in this specification.


getPrevious

public Agent getPrevious()
return the agent that was here before editing.


getPanel

public javax.swing.JPanel getPanel()

void ()
Overrides:
in class java.lang.Object

activationChanged

public void activationChanged()