|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.simbrain.world.World
org.simbrain.world.dataworld.DataWorld
public class DataWorld
DataWorld creates a table and then adds it to the viewport.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static boolean |
editButtons
Edit buttons boolean. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
DataWorld(DataWorldFrame ws)
Creates a new instance of the data world. |
|
| Method Summary | |
|---|---|
JPopupMenu |
buildPopupMenu()
|
void |
completedInputRound()
Use when a full set of stimuli has been gathered, to initiate post-stimulus gathering activties. |
void |
displayRandomizeDialog()
Displays the randomize dialog. |
ArrayList |
getAgentList()
Dataworlds contain one agent, themselves. |
boolean |
getColumnIteration()
|
int |
getCurrentRow()
|
int |
getLowerBound()
|
TableModel |
getModel()
|
JMenu |
getMotorCommandMenu(ActionListener al)
Unused stub; data worlds don't receive commands. |
String |
getName()
Return the name of this agent. |
DataWorldFrame |
getParentFrame()
|
World |
getParentWorld()
Dataworlds are agents, hence this returns itself. |
Point |
getSelectedPoint()
|
JMenu |
getSensorIdMenu(ActionListener al)
Returns a menu with on id, "Column X" for each column. |
double |
getStimulus(String[] sensorId)
Returns the value in the given column of the table uses the current row. |
JTable |
getTable()
|
String |
getType()
Return the type of this world. |
int |
getUpperBound()
|
String |
getWorldName()
Return the name of this world. |
void |
incrementCurrentRow()
Increment current row by 1. |
void |
incrementUsingLastColumn()
Increment a number of times equal to the last column. |
boolean |
isIterationMode()
|
void |
keyPressed(KeyEvent arg0)
Responds to key pressed events. |
void |
keyReleased(KeyEvent arg0)
Responds to key released events. |
void |
keyTyped(KeyEvent arg0)
Responds to key typed events. |
void |
mouseClicked(MouseEvent e)
Responds to mouse clicked event. |
void |
mouseEntered(MouseEvent e)
Responds to mouse entered events. |
void |
mouseExited(MouseEvent e)
Responds to mouse exited event. |
void |
mousePressed(MouseEvent e)
Responds to mouse pressed event. |
void |
mouseReleased(MouseEvent e)
Responds to mouse released event. |
Double |
randomInteger()
|
void |
randomize()
Randomizes the values. |
void |
resetModel(String[][] data)
Resets the model. |
void |
setColumnIteration(boolean columnIteration)
|
void |
setCurrentRow(int currentRow)
Sets the current row. |
void |
setIterationMode(boolean iterationMode)
|
void |
setLowerBound(int lowerBound)
Sets the lower bound value. |
void |
setModel(TableModel model)
|
void |
setMotorCommand(String[] commandList,
double value)
Unused stub; data worlds don't receive commands. |
void |
setParentFrame(DataWorldFrame parentFrame)
|
void |
setSelectedPoint(Point selectedPoint)
Sets the selected point. |
void |
setTable(JTable table)
|
void |
setUpperBound(int upperBound)
Sets the upper bound value. |
void |
setWorldName(String name)
|
| Methods inherited from class org.simbrain.world.World |
|---|
addWorldListener, fireWorldChanged, removeWorldListener |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean editButtons
| Constructor Detail |
|---|
public DataWorld(DataWorldFrame ws)
ws - World frame to create a new data world within| Method Detail |
|---|
public void resetModel(String[][] data)
data - Data to resetpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - Mouse eventpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - Mouse eventpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - Mouse eventpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenere - Mouse eventpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenere - Mouse eventpublic JPopupMenu buildPopupMenu()
public String getType()
World
getType in class Worldpublic String getName()
Agent
getName in interface AgentgetName in class Componentpublic DataWorldFrame getParentFrame()
public void setParentFrame(DataWorldFrame parentFrame)
parentFrame - The parentFrame to set.public JTable getTable()
public void setTable(JTable table)
table - The table to set.public ArrayList getAgentList()
getAgentList in class Worldpublic World getParentWorld()
getParentWorld in interface Agentpublic void randomize()
public Double randomInteger()
public void displayRandomizeDialog()
public void setMotorCommand(String[] commandList,
double value)
setMotorCommand in interface AgentcommandList - List of commandsvalue - Valuepublic JMenu getMotorCommandMenu(ActionListener al)
getMotorCommandMenu in class Worldal - Action listener
public double getStimulus(String[] sensorId)
getStimulus in interface AgentsensorId - Sensor identification
public void incrementUsingLastColumn()
public void incrementCurrentRow()
public JMenu getSensorIdMenu(ActionListener al)
getSensorIdMenu in class Worldal - Action listener
public String getWorldName()
World
getWorldName in class Worldpublic void setWorldName(String name)
name - The name to set.public TableModel getModel()
public void setModel(TableModel model)
model - The model to set.public int getLowerBound()
public void setLowerBound(int lowerBound)
lowerBound - Value to setpublic int getUpperBound()
public void setUpperBound(int upperBound)
upperBound - Value to setpublic int getCurrentRow()
public void setCurrentRow(int currentRow)
currentRow - Value to setpublic Point getSelectedPoint()
public void setSelectedPoint(Point selectedPoint)
selectedPoint - Valuet to setpublic void keyTyped(KeyEvent arg0)
keyTyped in interface KeyListenerarg0 - Key eventpublic void keyPressed(KeyEvent arg0)
keyPressed in interface KeyListenerarg0 - Key eventpublic void keyReleased(KeyEvent arg0)
keyReleased in interface KeyListenerarg0 - Key eventpublic void completedInputRound()
Agent
completedInputRound in interface AgentAgentpublic boolean isIterationMode()
public void setIterationMode(boolean iterationMode)
iterationMode - The iterationMode to set.public boolean getColumnIteration()
public void setColumnIteration(boolean columnIteration)
columnIteration - The columnIteration to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||