|
||||||||||
| 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
public abstract class World
World is the abstract superclass of all worlds, which are components which interact with neural networks.
| 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 |
|---|
| 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 | |
|---|---|
World()
Defalt world constructor. |
|
World(LayoutManager layout)
Creates a new world with layout. |
|
| Method Summary | |
|---|---|
void |
addWorldListener(WorldListener wl)
Add the specified world listener. |
void |
fireWorldChanged()
Notify all world listeners that this world has changed. |
abstract ArrayList |
getAgentList()
Return the list of agents for this world. |
abstract JMenu |
getMotorCommandMenu(ActionListener actionListener)
Return a menu of motor commands for this world and register the specified action listener as an action listener for the menu items in the returned menu. |
abstract JMenu |
getSensorIdMenu(ActionListener actionListener)
Return a menu of sensor ids for this world and register the specified action listener as an action listener for the menu items in the returned menu. |
abstract String |
getType()
Return the type of this world. |
abstract String |
getWorldName()
Return the name of this world. |
void |
removeWorldListener(WorldListener wl)
Remove the specified world listener. |
| 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 |
| Constructor Detail |
|---|
public World()
public World(LayoutManager layout)
layout - Layout of world| Method Detail |
|---|
public abstract String getType()
public abstract String getWorldName()
public abstract ArrayList getAgentList()
public abstract JMenu getMotorCommandMenu(ActionListener actionListener)
actionListener - action listener to register
public abstract JMenu getSensorIdMenu(ActionListener actionListener)
actionListener - action listener to register
public void fireWorldChanged()
public void addWorldListener(WorldListener wl)
wl - listener to addpublic void removeWorldListener(WorldListener wl)
wl - listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||