|
The Physiologist's Friend Simulation API | ||||||||
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
ch.unizh.ini.friend.gui.FriendGUI
public class FriendGUI
Main GUI.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
ActivityMeter |
activityMeter
the acitivyt meter |
static float |
FRAME_SCREEN_FRACTION
fraction of screen horizontal occupied by Frame |
static int |
SIMULATION_UPDATE_INTERVAL_MS
the interval in ms between simulation updates |
static int |
STATUS_HEIGHT
height of status panel in pixels |
StatusPanel |
statusPanel
the status panel. |
TangentScreen |
tangentScreen
the plotting area |
static String |
URL_HOME
the URL string for home page: "http://www.ini.unizh.ch/~tobi/friend" |
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, PROPERTIES, SOMEBITS |
Constructor Summary | |
---|---|
FriendGUI()
Creates new form FriendGUI. |
|
FriendGUI(SimulationSetup simulationSetup)
Creates new form FriendGUI. |
Method Summary | |
---|---|
SimulationSetup |
getSimulationSetup()
|
static void |
main(String[] args)
|
void |
setSimulationSetup(SimulationSetup setup)
sets the SimulationSetup to simulate. |
void |
startSimulation()
start the simulation running. |
void |
stopSimulation()
stops the simulation. |
void |
toggleSimulation()
toggle simulation running |
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.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
public TangentScreen tangentScreen
public StatusPanel statusPanel
public static final float FRAME_SCREEN_FRACTION
public static final int STATUS_HEIGHT
public ActivityMeter activityMeter
public static final String URL_HOME
public static final int SIMULATION_UPDATE_INTERVAL_MS
Constructor Detail |
---|
public FriendGUI(SimulationSetup simulationSetup)
simulationSetup
- the simulation setup. This is intialized by SimulationSetupFactory
.
It contains a stimulus as well as the neural architecture.public FriendGUI()
Method Detail |
---|
public void setSimulationSetup(SimulationSetup setup)
SimulationSetup
to simulate. Reassigns the TangentScreen and StatusPanel simulatons.
If this is changed from an existing running setup, the old simulation is stopped and the new one is started.
setup
- the new setuppublic SimulationSetup getSimulationSetup()
SimulationSetup
public void toggleSimulation()
public void startSimulation()
public void stopSimulation()
public static void main(String[] args)
args
- the command line arguments
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |