|
||||||||||
| 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.Window
java.awt.Frame
javax.swing.JFrame
ubiware.core.visualizer.VisualizerPrototypeForm
ubiware.core.visualizer.VisualizerPrototype
public class VisualizerPrototype
This class implements the "logical" functionality of the visualizer.
There are the concepts of "properties" which are values of significance and they represent higher-level options for the user. For each
one of those properties, there are PropertyChangeEvents fired whenever there is a vlaue change. Those values are the
following:
The string representing those properties in the fired events is the same as the strings above. They are also available as public fields. The class also provides accessors for those properties. The setters fire the change events if there is an actual value change.
| Nested Class Summary | |
|---|---|
static interface |
VisualizerPrototype.Predicate<T>
Classes implementing this interface can act as predicates, accepting or rejecting elements of type T. |
| Nested classes/interfaces inherited from class ubiware.core.visualizer.VisualizerPrototypeForm |
|---|
VisualizerPrototypeForm.AdvancedBeliefSearchArguments, VisualizerPrototypeForm.BeliefSearchArguments, VisualizerPrototypeForm.BeliefSearchType, VisualizerPrototypeForm.SimpleTextualMatchBeliefSearchArguments |
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
javax.swing.JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
java.awt.Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
java.awt.Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static java.lang.String |
agentLifeCyclesPropertyName
The name of the property change for the property change event that is thrown when property "agentLifeCycles" is changed. |
static java.lang.String |
aliasNamespacesPropertyName
The name of the property change for the property change event that is thrown when property "aliasNamespaces" is changed. |
static java.lang.String |
expandableEmptyBeliefContainersPropertyName
The name of the property change for the property change event that is thrown when property "expandableEmptyBeliefContainers" is changed. |
static java.lang.String |
showExpandedBeliefContainerIconPropertyName
The name of the property change for the property change event that is thrown when property "showExpandedBeliefContainerIcon" is changed. |
static java.lang.String |
showExpandedBeliefContainerTextPropertyName
The name of the property change for the property change event that is thrown when property "showExpandedBeliefContainerText" is changed. |
static java.lang.String |
showSettingsPropertyName
The name of the property change for the property change event that is thrown when property "showSettings" is changed. |
static java.lang.String |
waitingUntilAgentLifeCyclePropertyName
The name of the property change for the property change event that is thrown when property "waitingUntilAgentLifeCycle" is changed. |
static java.lang.String |
waitUntilAgentLifeCyclePropertyName
The name of the property change for the property change event that is thrown when property "waitUntilAgentLifeCycle" is changed. |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
VisualizerPrototype(UbiwareAgent agi,
DebugBehavior rabi)
Constructs a new Visualizer instance for the given agent, using the given behavior to access beliefs. |
|
| Method Summary | |
|---|---|
protected void |
alias_namespaces_changed(boolean alias)
Indicates that the user preference about aliasing namespaces has changed. |
protected void |
expandable_belief_containers_changed(boolean expandable)
Indicates that the user has changed her preferenece about empty belief container nodes to be expandable. |
long |
getAgentLifeCycles()
Returns the life cycles the agent has lived up to now. |
java.awt.Font |
getDisplayFont()
Provides access to the Font which is used to display information to the user. |
long |
getWaitUntilAgentLifeCycle()
Returns the life cycle number of the agent that the visualizer is waiting for. |
boolean |
isAliasNamespaces()
Returns true if the user has given the notion that she would like namespaces to be printed as short aliases. |
boolean |
isEmptyBeliefContainersExpandable()
Indicates the user's preference about whether a node which are belief containers and expanded should also have its icon displayed. |
boolean |
isExpandableEmptyBeliefContainers()
Returns whether the user prefers that empty belief containers are expandable or not. |
boolean |
isShowExpandedBeliefContainerIcon()
Returns whether the user prefers that expanded belief container nodes display their icon or not. |
boolean |
isShowExpandedBeliefContainerText()
Returns whether the user prefers that expanded belief container nodes display their text or not. |
boolean |
isShowSettings()
Returns whether the user has made some gesture which implies that she whould like the settings pane to be shown. |
boolean |
isWaitingUntilAgentLifeCycle()
Returns whether the visualizer is waiting for the completion of some agent life cycle. |
void |
notifyGoingSleep()
Method specified by the Ubiware agent Debugger. |
void |
notifyLiveIterationEnded(long cycle)
Method specified by the Ubiware agent Debugger. |
protected void |
rebuildBeliefTree()
Convenience method which equals calling rebuildBeliefTree(
new BeliefContainerTreeModel(null, rabi,
UbiwareAgent.GENERAL_CONTEXT). |
protected void |
search_requested(VisualizerPrototypeForm.BeliefSearchArguments arguments,
VisualizerPrototypeForm.BeliefSearchType search_type)
Called when the user has requested a search on the belief tree to be made. |
protected void |
search_result_selected(javax.swing.tree.TreePath path)
Called when the user has selected a specific tree path from the list of search results. |
static java.util.Set<javax.swing.tree.TreePath> |
searchTree(javax.swing.tree.TreeModel tm,
VisualizerPrototype.Predicate<javax.swing.tree.TreePath> predicate,
javax.swing.tree.TreePath parent)
Calls searchTree(javax.swing.tree.TreeModel, ubiware.core.visualizer.VisualizerPrototype.Predicate with a logger that writes to nowhere. |
static java.util.Set<javax.swing.tree.TreePath> |
searchTree(javax.swing.tree.TreeModel tm,
VisualizerPrototype.Predicate<javax.swing.tree.TreePath> predicate,
javax.swing.tree.TreePath parent,
java.util.logging.Logger logger)
Traverses the subtree of the given tree model whose root is indicated by the given tree path. |
protected void |
setAgentLifeCycles(long agentLifeCycles)
Sets the internal belief about in which life cycle the agent is right now. |
protected void |
setAliasNamespaces(boolean aliasNamespaces)
Sets whether namespaces should aliased as prefixes or not. |
protected void |
setExpandableEmptyBeliefContainers(boolean expandableEmptyBeliefContainers)
Sets whether empty belief containers should be expandable on the tree. |
protected void |
setShowExpandedBeliefContainerIcon(boolean showExpandedBeliefContainerIcon)
Sets whether expanded belief container nodes should display their icon or not. |
protected void |
setShowExpandedBeliefContainerText(boolean showExpandedBeliefContainerText)
Sets whether expanded belief container nodes should display their text or not. |
protected void |
setShowSettings(boolean showSettings)
Sets whether settings panel should be displayed or not. |
protected void |
setWaitingUntilAgentLifeCycle(boolean waitingUntilAgentLifeCycle)
Sets whether the visualizer is expecting for a specific agent life cycle to be completed or not. |
protected void |
setWaitUntilAgentLifeCycle(long lifeCycle)
Sets the agent life cycle number that the visualizer is waiting for. |
protected void |
show_expanded_belief_containers_icon_changed(boolean show)
Indicates that the user has changed her preference about showing expanded belief container nodes' icon. |
protected void |
show_expanded_belief_containers_text_changed(boolean show)
Indicates that the user has changed her preference about showing expanded belief container nodes' text. |
protected void |
show_in_N3_requested(java.lang.Object node)
Called when the user has requested a specific node of the tree to be rendered in N3 notation. |
protected void |
show_settings_panel_changed(boolean show)
Indicates that the user preference about showing or hiding the settings panel has changed. |
protected void |
stop_agent_changed(boolean stopped)
Indicates that the user has changed her preference about stopping the agent. |
protected java.lang.String |
treeNodeToN3(javax.swing.tree.TreeModel node)
Produces an N3 string from the given node, which must be either BeliefTreeModel or BeliefContainerTreeModel. |
protected void |
wait_until_agent_life_cycle_changed(boolean wait,
int cycles)
Will arrange everything so that the visualizer will wait for a number of specified life cycles. |
| Methods inherited from class javax.swing.JFrame |
|---|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.awt.Window |
|---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ubiware.core.visualizer.SAPLTreeCellRenderer.UserPreferencies |
|---|
getGraphics |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final java.lang.String aliasNamespacesPropertyName
public static final java.lang.String showSettingsPropertyName
public static final java.lang.String agentLifeCyclesPropertyName
public static final java.lang.String waitUntilAgentLifeCyclePropertyName
public static final java.lang.String waitingUntilAgentLifeCyclePropertyName
public static final java.lang.String expandableEmptyBeliefContainersPropertyName
public static final java.lang.String showExpandedBeliefContainerIconPropertyName
public static final java.lang.String showExpandedBeliefContainerTextPropertyName
| Constructor Detail |
|---|
public VisualizerPrototype(UbiwareAgent agi,
DebugBehavior rabi)
Constructs a new Visualizer instance for the given agent, using the given behavior to access beliefs.
agi - the Agent's whose beliefs we are messing withrabi - a RAB whose parent agent must be agi| Method Detail |
|---|
public static java.util.Set<javax.swing.tree.TreePath> searchTree(javax.swing.tree.TreeModel tm,
VisualizerPrototype.Predicate<javax.swing.tree.TreePath> predicate,
javax.swing.tree.TreePath parent,
java.util.logging.Logger logger)
Traverses the subtree of the given tree model whose root is indicated by the given tree path.
Each node (not only leaves) are tested with the given predicate and if accepted, they are included in the resulting Set.
If parent is null, then the whole tree is checked.
tm - the tree model to traverseparent - the parent of the subtree to checkpredicate - a predicate for TreePaths of objects in the tree modellogger - an optional logger to log actions to
public static java.util.Set<javax.swing.tree.TreePath> searchTree(javax.swing.tree.TreeModel tm,
VisualizerPrototype.Predicate<javax.swing.tree.TreePath> predicate,
javax.swing.tree.TreePath parent)
searchTree(javax.swing.tree.TreeModel, ubiware.core.visualizer.VisualizerPrototype.Predicate, javax.swing.tree.TreePath, java.util.logging.Logger) with a logger that writes to nowhere.
tm - see searchTree(javax.swing.tree.TreeModel, ubiware.core.visualizer.VisualizerPrototype.Predicate, javax.swing.tree.TreePath, java.util.logging.Logger) predicate - see searchTree(javax.swing.tree.TreeModel, ubiware.core.visualizer.VisualizerPrototype.Predicate, javax.swing.tree.TreePath, java.util.logging.Logger) parent - see searchTree(javax.swing.tree.TreeModel, ubiware.core.visualizer.VisualizerPrototype.Predicate, javax.swing.tree.TreePath, java.util.logging.Logger)
searchTree(javax.swing.tree.TreeModel, ubiware.core.visualizer.VisualizerPrototype.Predicate, javax.swing.tree.TreePath, java.util.logging.Logger) public boolean isAliasNamespaces()
isAliasNamespaces in interface SAPLTreeCellRenderer.UserPreferenciestrue if the user has given the notion that she would like namespaces to be printed as short aliases.public java.awt.Font getDisplayFont()
Provides access to the Font which is used to display information to the user. This method is a "best effort" method to
determine which font is used to display text. It is possible (especially if this method is invoked before the initialization of the
component) that it returns null as a result. The sources that it looks for a font are the following, in the order they are
presented:
this.getFont()this.getGraphics.getFont() unless getGraphics()
returns null.
If all of the above return null, then this method will return null as well.
getDisplayFont in interface SAPLTreeCellRenderer.UserPreferenciesFont which is used to display information to the user or null.public boolean isEmptyBeliefContainersExpandable()
SAPLTreeCellRenderer.UserPreferenciesfalse then expanded belief container nodes should show no icon.
isEmptyBeliefContainersExpandable in interface SAPLTreeCellRenderer.UserPreferenciestrue if the user wants icons, false otherwisepublic void notifyLiveIterationEnded(long cycle)
Debugger. When the agent notifies the visualizer instance through this method, the
visualizer will update information about in which cycle the Agent is currently in. It will also rebuild the belief tree if this is a
cycle that the visualizer is waiting for.
notifyLiveIterationEnded in interface Debuggercycle - number of cycles the agent has livedpublic void notifyGoingSleep()
Debugger. When the agent notifies the visualizer instance through this method, the
visualizer will re-read all the belief storage of the agent and will update the displayed belief tree.
notifyGoingSleep in interface Debuggerprotected void setAliasNamespaces(boolean aliasNamespaces)
aliasNamespaces - alias namespaces?protected void setShowSettings(boolean showSettings)
showSettings - show settings panel?protected void setAgentLifeCycles(long agentLifeCycles)
agentLifeCycles - the current agent life cycleprotected void setExpandableEmptyBeliefContainers(boolean expandableEmptyBeliefContainers)
expandableEmptyBeliefContainers - should empty belief containers be expandable?protected void setShowExpandedBeliefContainerText(boolean showExpandedBeliefContainerText)
showExpandedBeliefContainerText - should expanded belief containers display their text?protected void setShowExpandedBeliefContainerIcon(boolean showExpandedBeliefContainerIcon)
showExpandedBeliefContainerIcon - should expanded belief containers display their icon?
protected void setWaitUntilAgentLifeCycle(long lifeCycle)
throws java.lang.IllegalArgumentException
Sets the agent life cycle number that the visualizer is waiting for.
If parameter lifeCycle is a negative number, an exception is thrown.
If this method is called with a valid argument, setWaitingUntilAgentLifeCycle(true) is
automatically called.
If there is an actual value change, a property change event is fired for property "waitUntilAgentLifeCycle".
lifeCycle - the life cycle to wait for
java.lang.IllegalArgumentException - if parameter lifeCycle is a negative numberprotected void setWaitingUntilAgentLifeCycle(boolean waitingUntilAgentLifeCycle)
Sets whether the visualizer is expecting for a specific agent life cycle to be completed or not. If false is passed as a
parameter to this method, then the value of property "waitUntilAgentLifeCycle" is ignored.
This method is automatically called from setWaitUntilAgentLifeCycle(long) with argument true and there is no need to call
is separately after calling setWaitUntilAgentLifeCycle.
If there is an actual value change, this method fires a property change event for property "waitingUntilAgentLifeCycle".
waitingUntilAgentLifeCycle - wait until agent life cycle x ?public boolean isWaitingUntilAgentLifeCycle()
public long getWaitUntilAgentLifeCycle()
isWaitingUntilAgentLifeCycle()
== true.
public boolean isShowExpandedBeliefContainerIcon()
isShowExpandedBeliefContainerIcon in interface SAPLTreeCellRenderer.UserPreferenciespublic boolean isShowExpandedBeliefContainerText()
isShowExpandedBeliefContainerText in interface SAPLTreeCellRenderer.UserPreferenciespublic boolean isExpandableEmptyBeliefContainers()
public boolean isShowSettings()
public long getAgentLifeCycles()
protected void alias_namespaces_changed(boolean alias)
VisualizerPrototypeForm
alias_namespaces_changed in class VisualizerPrototypeFormalias - alias namespaces?protected void show_settings_panel_changed(boolean show)
VisualizerPrototypeForm
show_settings_panel_changed in class VisualizerPrototypeFormshow - show settings panel?
protected void wait_until_agent_life_cycle_changed(boolean wait,
int cycles)
lifeCycle is a negative
number or zero an exception is thrown.
wait_until_agent_life_cycle_changed in class VisualizerPrototypeFormwait - should we wait until a certain life cycle?cycles - the life cycles to wait for (if wait is true)
java.lang.IllegalArgumentException - when argument lifeCycle is <= 0protected void stop_agent_changed(boolean stopped)
VisualizerPrototypeFormstopped is true then the
user would like to stop the agent, resume it otherwise.
stop_agent_changed in class VisualizerPrototypeFormstopped - stop the agent? or resume?protected void expandable_belief_containers_changed(boolean expandable)
VisualizerPrototypeForm
expandable_belief_containers_changed in class VisualizerPrototypeFormexpandable - should they be expandable?protected void show_expanded_belief_containers_icon_changed(boolean show)
VisualizerPrototypeForm
show_expanded_belief_containers_icon_changed in class VisualizerPrototypeFormshow - show them?protected void show_expanded_belief_containers_text_changed(boolean show)
VisualizerPrototypeForm
show_expanded_belief_containers_text_changed in class VisualizerPrototypeFormshow - show them?protected void show_in_N3_requested(java.lang.Object node)
VisualizerPrototypeForm
show_in_N3_requested in class VisualizerPrototypeFormnode - the node to be rendered in N3
protected void search_requested(VisualizerPrototypeForm.BeliefSearchArguments arguments,
VisualizerPrototypeForm.BeliefSearchType search_type)
VisualizerPrototypeFormCalled when the user has requested a search on the belief tree to be made.
The args argument is depended on the search_type. For more information about the specific arguments-structure for
each search-type, refere to the VisualizerPrototypeForm.BeliefSearchType documentation.
search_requested in class VisualizerPrototypeFormarguments - the arguments the user has entered - this is search-type depended.search_type - what type of search is it, what does the given string signifyprotected void search_result_selected(javax.swing.tree.TreePath path)
VisualizerPrototypeForm
search_result_selected in class VisualizerPrototypeFormpath - the path the user selectedprotected void rebuildBeliefTree()
Convenience method which equals calling rebuildBeliefTree(
new BeliefContainerTreeModel(null, rabi,
UbiwareAgent.GENERAL_CONTEXT).
protected java.lang.String treeNodeToN3(javax.swing.tree.TreeModel node)
throws java.lang.IllegalArgumentException
BeliefTreeModel or BeliefContainerTreeModel.
node - the node
java.lang.IllegalArgumentException - when node is a BeliefTreeModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||