aima.gui.framework
Class AgentAppFrame.SelectionState

java.lang.Object
  extended by aima.gui.framework.AgentAppFrame.SelectionState
Enclosing class:
AgentAppFrame

public static class AgentAppFrame.SelectionState
extends java.lang.Object

Contains the names of all selectors and the indices of their selected items. Instances are used to communicate the selection state between the frame and the controller.


Constructor Summary
protected AgentAppFrame.SelectionState(java.lang.String[] selectors)
           
 
Method Summary
 int getValue(int selectorIdx)
          Returns the index of the selected item of a specified selector.
 int getValue(java.lang.String selector)
          Returns the index of the selected item of a specified selector.
 int size()
          Returns the number of selectors currently available.
 java.lang.String toString()
          Returns a readable representation of the selection state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentAppFrame.SelectionState

protected AgentAppFrame.SelectionState(java.lang.String[] selectors)
Method Detail

size

public int size()
Returns the number of selectors currently available.


getValue

public int getValue(int selectorIdx)
Returns the index of the selected item of a specified selector.


getValue

public int getValue(java.lang.String selector)
Returns the index of the selected item of a specified selector.


toString

public java.lang.String toString()
Returns a readable representation of the selection state.

Overrides:
toString in class java.lang.Object