|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
agent.base.AgentComponent
agent.example.ExampleProblemSolver
This is a shell JAF component which demonstrates how the various functions and stages can be used. This class extends ProblemSolver, but you can also just extend agent.base.AgentComponent to make a completely new component.
AgentComponent
,
Serialized FormField Summary | |
static java.lang.String |
PERFORMACTIONS
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ExampleProblemSolver()
Default constructor. |
Method Summary | |
void |
actionAborted(ActionEvent e)
|
void |
actionCompleted(ActionEvent e)
|
void |
actionStarted(ActionEvent e)
These are called when action events take place. |
void |
addExampleEventListener(ExampleEventListener l)
This component produces an ExampleEvent stream. |
void |
begin()
Called when the component is ready to execute. |
void |
end()
Called when the component is ended, which basically only happens when the agent is terminated. |
void |
init()
The initialization procedure. |
void |
messageReceived(MessageEvent me)
Monitor any messages that might get sent out or received |
void |
messageSent(MessageEvent me)
|
void |
propertyAdded(PropertyEvent e)
|
void |
propertyChanged(PropertyEvent e)
Watch for interesting property changes. |
void |
propertyRemoved(PropertyEvent e)
|
void |
pulse()
Called periodically by the Control component, either in response to actual passage of time or in response to some other stimuli it perceives as a time indicator (such as a pulse from a time controller). |
void |
removeExampleEventListener(ExampleEventListener l)
Unregisters a listener. |
Methods inherited from class agent.base.AgentComponent |
addDependency, getDependencies, getDescriptor, getDescriptorString, getPreferredSize, hasClickAction, hasGUI, hasPopupMenu, paint, reset, setDescriptor, setFont, setHasGUI, startFireEvent |
Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String PERFORMACTIONS
Constructor Detail |
public ExampleProblemSolver()
Method Detail |
public void init()
public void begin()
public void pulse()
public void end()
public void addExampleEventListener(ExampleEventListener l)
l
- The listener which is registering for the streamremoveExampleEventListener(agent.example.ExampleEventListener)
public void removeExampleEventListener(ExampleEventListener l)
l
- The listener which is registering for the streamaddExampleEventListener(agent.example.ExampleEventListener)
public void propertyChanged(PropertyEvent e)
propertyChanged
in interface PropertyEventListener
e
- The event to look atpublic void propertyAdded(PropertyEvent e)
propertyAdded
in interface PropertyEventListener
public void propertyRemoved(PropertyEvent e)
propertyRemoved
in interface PropertyEventListener
public void messageReceived(MessageEvent me)
messageReceived
in interface MessageEventListener
me
- The event to look atpublic void messageSent(MessageEvent me)
messageSent
in interface MessageEventListener
public void actionStarted(ActionEvent e)
actionStarted
in interface ActionEventListener
e
- The action event which took placepublic void actionAborted(ActionEvent e)
actionAborted
in interface ActionEventListener
public void actionCompleted(ActionEvent e)
actionCompleted
in interface ActionEventListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |