Serialized Form


Package sim.display

Class sim.display.Console extends javax.swing.JFrame implements Serializable

Serialized Fields

simulation

GUIState simulation
Our simulation


time

javax.swing.JLabel time
The current time


tps

javax.swing.JLabel tps
The frame rate


slider

javax.swing.JSlider slider
The slider which controls the speed of play


sliderText

javax.swing.JLabel sliderText
The associated text with the speed of play slider


stepSlider

javax.swing.JSlider stepSlider
The slider which controls the number of steps per press of the step-button


stepSliderText

javax.swing.JLabel stepSliderText
The associated text for number of steps per press of the step-button


prioritySlider

javax.swing.JSlider prioritySlider
The slider which controls the thread priority of the underlying model thread


prioritySliderText

javax.swing.JLabel prioritySliderText
The associiated text for the thread priority of the underlying model thread


stopButton

javax.swing.JButton stopButton
The stop button


playButton

javax.swing.JButton playButton
The play button


pauseButton

javax.swing.JButton pauseButton
The pause button


tabPane

javax.swing.JTabbedPane tabPane
The top-level tabbed view


frameListDisplay

javax.swing.JList frameListDisplay
The list of frames shown in the "Displays" tab


frameList

java.util.Vector frameList
The actual list of frames used in frameListDisplay


endField

PropertyField endField
Where the user can enter in a time to stop at


pauseField

PropertyField pauseField
Where the user can enter in a time to pause at


randomField

PropertyField randomField
Where the user can enter a new random number seed


menuBar

javax.swing.JMenuBar menuBar
The Console's menu bar


innerInspectorPanel

javax.swing.JSplitPane innerInspectorPanel
The split pane shown under the "Inspectors" tab, holding the list of inspectors at top, and specific inspectors at bottom


inspectorPanel

javax.swing.JPanel inspectorPanel
An outer panel which holds the innerInspectorPanel, plus associated buttons


incrementSeedOnPlay

javax.swing.JCheckBox incrementSeedOnPlay
The checkbox for whether or not the random seed should be incremented each play-button press


inspectorList

javax.swing.JList inspectorList
The list of inspectors at the top of the split pane


inspectorSwitcher

javax.swing.JPanel inspectorSwitcher
Holds the inspectors shown at the bottom of the split pane (if any)


inspectorCardLayout

java.awt.CardLayout inspectorCardLayout
The card layout which enables inspectorSwitcher to show various inspectors


detatchButton

javax.swing.JButton detatchButton
The button for detatching inspectors


removeButton

javax.swing.JButton removeButton
The button for emptying the inspector list


modelInspector

Inspector modelInspector
The global model inspector, if any


buttonBox

javax.swing.Box buttonBox
The box which holds the play/stop/pause buttons, and the time and rate fields.


randomSeed

int randomSeed
Random number generator seed


numStepsPerStepButtonPress

int numStepsPerStepButtonPress
how many steps we should take on one press of the "step" button. As this is only relevant when there is NO underlying play thread (stepping happens inside the event loop, with the play thread killed), it can be safely set, but only do so from the event loop.


threadPriority

int threadPriority
What should the simulation thread priority be? Don't play with this.


whenShouldEnd

long whenShouldEnd
When should the simulation end? Don't play with this.


whenShouldPause

long whenShouldPause
When should the simulation pause? Don't play with this.


playSleep

long playSleep
Milliseconds of how long we should sleep between each step. Don't play with this.


playThread

java.lang.Thread playThread
The thread that actually goes through the steps


playThreadLock

java.lang.Object playThreadLock
A general lock used by a number of short methods which need to "synchronize on the play thread" even if it's changing to another thread. To do this, we use this official 'play thread lock'


threadShouldStop

boolean threadShouldStop
Whether the thread should stop. Don't play with this.


playState

int playState
The current state of the simulation: playing, stopped, or paused. Don't play with this.


isClosing

boolean isClosing
Private internal flag which indicates if the program is already in the process of quitting.


isClosingLock

java.lang.Object isClosingLock
Private lock used by doClose() to avoid synchronizing on Console.


simulationFile

java.io.File simulationFile
The last filename the user requested. Used to open file dialogs intelligently


showsTime

boolean showsTime
Indicates whether or not we're displaying the time and frame rate, or if they're "hidden"


lastTime

long lastTime
The last value the time was set to.


lastTps

double lastTps
The last value the frame rate was set to.


tpsformat

java.text.DecimalFormat tpsformat
How the frame rate should look


blocker

java.lang.Runnable blocker
Used to block until a repaint is handled -- see spawnPlayThread() below


inspectorNames

java.util.Vector inspectorNames
Holds the names for each inspector presently in the inspectorSwitcher


inspectorStoppables

java.util.Vector inspectorStoppables
Holds the Stoppable objects for each inspector presently in the inspectorSwitcher


inspectorToolbars

java.util.Vector inspectorToolbars
Holds the toolbars wrapping each inspector presently in the inspectorSwitcher.


allInspectors

java.util.WeakHashMap allInspectors
Weakly holds all inspectors that might possibly be around. Cleaned out when the user presses play. As inspectors are closed or eliminated, they may disappear from this WeakHashMap and be garbage collected.

Class sim.display.Display2D extends javax.swing.JComponent implements Serializable

Serialized Fields

lastEncodedTimestamp

long lastEncodedTimestamp
The last timestamp for a frame that was painted to the screen. Keeping this variable around enables our movie maker to ensure that it doesn't write a frame twice to its movie stream.


movieMaker

MovieMaker movieMaker
Our movie maker, if one is running, else null.


insideDisplay

Display2D.InnerDisplay2D insideDisplay
The 2D display inside the scroll view. Does the actual drawing of the simulation.


optionPane

Display2D.OptionPane optionPane
Our option pane


portrayals

java.util.ArrayList portrayals
The list of portrayals the insideDisplay draws. Each element in this list is a Portrayal2DHolder.


display

javax.swing.JScrollPane display
The scroll view which holds the insideDisplay.


port

javax.swing.JViewport port
The scroll view's viewport.


stopper

Stoppable stopper
The stoppable for the repeat object which redraws the Display2D in the schedule.


simulation

GUIState simulation
The simulation proper.


header

javax.swing.Box header
The component bar at the top of the Display2D.


popup

javax.swing.JPopupMenu popup
The popup layers menu


togglebutton

javax.swing.JToggleButton togglebutton
The button which pops up the layers menu


movieButton

javax.swing.JButton movieButton
The button which starts or stops a movie


snapshotButton

javax.swing.JButton snapshotButton
The button which snaps a screenshot


optionButton

javax.swing.JButton optionButton
The button which pops up the option pane


scale

double scale
Scale (zoom value). 1.0 is 1:1. 2.0 is zoomed in 2 times. Etc.


scaleLock

java.lang.Object scaleLock

interval

long interval
How many ticks are skipped before the display updates itself.


intervalLock

java.lang.Object intervalLock

clipping

boolean clipping
Whether or not we're clipping


backdrop

java.awt.Paint backdrop
Backdrop color or other paint. This is the color/paint that the simulation is whitewashed with prior to the portrayals redrawing themselves. This differs from the scroll view's BACKGROUND color, which is the color of any area that the simulation doesn't draw on.

Class sim.display.Display2D.InnerDisplay2D extends javax.swing.JComponent implements Serializable

Serialized Fields

buffer

java.awt.image.BufferedImage buffer
Image buffer for doing buffered draws, mostly for screenshots etc.


width

double width
The width of the display when the scale is 1.0


height

double height
The height of the display when the scale is 1.0


xOffset

double xOffset
x offset


yOffset

double yOffset
y offset


unbufferedHints

java.awt.RenderingHints unbufferedHints
Hints used to draw objects to the screen or to a buffer


bufferedHints

java.awt.RenderingHints bufferedHints
Hints used to draw the buffered image to the screen


viewRect

java.awt.Rectangle viewRect
TO FIX A SUBTLE BUG. Can't call getViewRect() to get the proper clipping rect, because getViewRect calls some unknown synchronized gunk further up in Swing; thus if I'm in Windoze and splat to the screen from my own thread, and at the same time the Swing thread is trying to draw me, we have a problem -- it grabs the unknown gunk lock, I synchronize on this, then I try to call getViewRect on the port and lock, and we're both hung. if we do redrawing via repaint() like in MacOS X, then we're fine, but if we do it a-la X or Windows, this bug rears its ugly head. So we get the most recent viewRect and set it here and keep it for when the redraw needs it, so it doesn't have to ask for it from Swing (which could be locked).


viewRectLock

java.lang.Object viewRectLock
Lock for the viewRect above. Don't want to lock on the Display2D itself.

Class sim.display.Display2D.OptionPane extends javax.swing.JFrame implements Serializable

Serialized Fields

buffering

int buffering

useNoBuffer

javax.swing.JRadioButton useNoBuffer

useBuffer

javax.swing.JRadioButton useBuffer

useDefault

javax.swing.JRadioButton useDefault

usageGroup

javax.swing.ButtonGroup usageGroup

antialias

javax.swing.JCheckBox antialias

antialiasText

javax.swing.JCheckBox antialiasText

alphaInterpolation

javax.swing.JCheckBox alphaInterpolation

interpolation

javax.swing.JCheckBox interpolation

xOffsetField

NumberTextField xOffsetField

yOffsetField

NumberTextField yOffsetField

Class sim.display.SimApplet extends java.applet.Applet implements Serializable


Package sim.engine

Class sim.engine.MultiStep extends java.lang.Object implements Serializable

Serialized Fields

current

int current

countdown

boolean countdown

n

int n

step

Steppable step

Class sim.engine.ParallelSequence extends Sequence implements Serializable

serialVersionUID: 2731888904476273479l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream p)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream p)
                  throws java.io.IOException
Serialized Fields

semaphore

ParallelSequence.Semaphore semaphore

workers

ParallelSequence.Worker[] workers

threads

java.lang.Thread[] threads

pleaseDie

boolean pleaseDie

Class sim.engine.RandomSequence extends Sequence implements Serializable

Serialized Fields

shouldSynchronize

boolean shouldSynchronize

Class sim.engine.Schedule extends java.lang.Object implements Serializable

serialVersionUID: 2562838695289414534l

Serialized Fields

queue

Heap[] queue

next

Steppable[][] next

numNext

int[] numNext

substeps

Steppable[][] substeps

numSubsteps

int[] numSubsteps

time

long time

steps

long steps

Class sim.engine.Sequence extends java.lang.Object implements Serializable

Serialized Fields

steps

Steppable[] steps

Class sim.engine.SimState extends java.lang.Object implements Serializable

Serialized Fields

random

MersenneTwisterFast random
The SimState's random number generator


schedule

Schedule schedule
SimState's schedule

Class sim.engine.WeakStep extends java.lang.Object implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream p)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream p)
                  throws java.io.IOException
Serialized Fields

weakStep

java.lang.ref.WeakReference weakStep

weakStop

java.lang.ref.WeakReference weakStop


Package sim.util

Class sim.util.Bag extends java.lang.Object implements Serializable

Serialized Fields

objs

java.lang.Object[] objs

numObjs

int numObjs

Class sim.util.CollectionProperties extends Properties implements Serializable

Serialized Fields

collection

java.util.Collection collection

map

java.util.Map map

indexed

Indexed indexed

isVolatile

boolean isVolatile

Class sim.util.Double2D extends java.lang.Object implements Serializable

Serialized Fields

x

double x

y

double y

Class sim.util.Double3D extends java.lang.Object implements Serializable

Serialized Fields

x

double x

y

double y

z

double z

Class sim.util.DoubleBag extends java.lang.Object implements Serializable

Serialized Fields

objs

double[] objs

numObjs

int numObjs

Class sim.util.Heap extends java.lang.Object implements Serializable

Serialized Fields

keys

long[] keys

objects

java.lang.Object[] objects

numElem

int numElem

Class sim.util.Int2D extends java.lang.Object implements Serializable

Serialized Fields

x

int x

y

int y

Class sim.util.Int3D extends java.lang.Object implements Serializable

Serialized Fields

x

int x

y

int y

z

int z

Class sim.util.IntBag extends java.lang.Object implements Serializable

Serialized Fields

objs

int[] objs

numObjs

int numObjs

Class sim.util.Properties extends java.lang.Object implements Serializable

Class sim.util.SimpleProperties extends Properties implements Serializable

Serialized Fields

object

java.lang.Object object

getMethods

java.util.ArrayList getMethods

setMethods

java.util.ArrayList setMethods

Class sim.util.WordWrap extends java.lang.Object implements Serializable


Package sim.util.gui

Class sim.util.gui.AbstractScrollable extends javax.swing.JPanel implements Serializable

Class sim.util.gui.LabelledList extends javax.swing.JComponent implements Serializable

Serialized Fields

consolePanel

javax.swing.JComponent consolePanel

gridbag

java.awt.GridBagLayout gridbag

gbc

java.awt.GridBagConstraints gbc

y

int y

Class sim.util.gui.NumberTextField extends javax.swing.JComponent implements Serializable

Serialized Fields

valField

javax.swing.JTextField valField

downButton

javax.swing.JButton downButton

upButton

javax.swing.JButton upButton

bellyButton

javax.swing.JButton bellyButton

fieldLabel

javax.swing.JLabel fieldLabel

initialValue

double initialValue

multiply

double multiply

add

double add

currentValue

double currentValue

defaultColor

java.awt.Color defaultColor

editedColor

java.awt.Color editedColor

listener

java.awt.event.KeyListener listener

Class sim.util.gui.PropertyField extends javax.swing.JComponent implements Serializable

Serialized Fields

valField

javax.swing.JTextField valField

checkField

javax.swing.JCheckBox checkField

viewButton

javax.swing.JButton viewButton

viewLabel

javax.swing.JLabel viewLabel

optionalLabel

javax.swing.JLabel optionalLabel

switcher

javax.swing.JPanel switcher

valFieldBorder

javax.swing.border.Border valFieldBorder

emptyBorder

javax.swing.border.Border emptyBorder

currentValue

java.lang.String currentValue

isReadWrite

boolean isReadWrite

displayState

int displayState

defaultColor

java.awt.Color defaultColor

editedColor

java.awt.Color editedColor

listener

java.awt.event.KeyListener listener

checkListener

java.awt.event.ActionListener checkListener

viewButtonListener

java.awt.event.ActionListener viewButtonListener


Package sim.util.media

Class sim.util.media.MovieEncoder extends java.lang.Object implements Serializable

Serialized Fields

started

boolean started

stopped

boolean stopped

width

int width

height

int height

type

int type

frameRate

float frameRate

processor

Processor processor

source

MovieEncoderDataSource source

sink

DataSink sink

file

java.io.File file

encodeFormat

Format encodeFormat

waitSync

java.lang.Object waitSync

stateTransitionOK

boolean stateTransitionOK

waitFileSync

java.lang.Object waitFileSync

fileDone

boolean fileDone

fileSuccess

boolean fileSuccess


Package sim.field

Class sim.field.SparseField extends java.lang.Object implements Serializable

Serialized Fields

removeEmptyBags

boolean removeEmptyBags
Should we remove bags in the field if they have been emptied, and let them GC, or should we keep them around? This doesn't include the allObjects bag.


replaceLargeBags

boolean replaceLargeBags
When a bag drops to one quarter capacity, should we replace it with a new bag? This doesn't include the allObjects bag.


locationAndIndexHash

java.util.HashMap locationAndIndexHash
LocationAndIndex objects (locations and indexes into the allObjects array) hashed by Object. Ideally you would store only immutable or hash-by-pointer objects, el se they'll get lost in the HashMap.


objectHash

java.util.HashMap objectHash
Bags of objects hashed by location. Do not rely on these bags always being the same objects.


allObjects

Bag allObjects
All the objects in the sparse field. For fast scans. Do not rely on this bag always being the same object.

Class sim.field.SparseField.LocationAndIndex extends java.lang.Object implements Serializable

Serialized Fields

location

java.lang.Object location

index

int index


Package sim.field.grid

Class sim.field.grid.AbstractGrid2D extends java.lang.Object implements Serializable

Serialized Fields

width

int width

height

int height

Class sim.field.grid.AbstractGrid3D extends java.lang.Object implements Serializable

Serialized Fields

width

int width

height

int height

length

int length

Class sim.field.grid.DoubleGrid2D extends AbstractGrid2D implements Serializable

Serialized Fields

field

double[][] field

Class sim.field.grid.DoubleGrid3D extends AbstractGrid3D implements Serializable

Serialized Fields

field

double[][][] field

Class sim.field.grid.IntGrid2D extends AbstractGrid2D implements Serializable

Serialized Fields

field

int[][] field

Class sim.field.grid.IntGrid3D extends AbstractGrid3D implements Serializable

Serialized Fields

field

int[][][] field

Class sim.field.grid.ObjectGrid2D extends AbstractGrid2D implements Serializable

Serialized Fields

field

java.lang.Object[][] field

Class sim.field.grid.ObjectGrid3D extends AbstractGrid3D implements Serializable

Serialized Fields

field

java.lang.Object[][][] field

Class sim.field.grid.SparseGrid2D extends SparseField implements Serializable

Serialized Fields

width

int width

height

int height

Class sim.field.grid.SparseGrid3D extends SparseField implements Serializable

Serialized Fields

width

int width

height

int height

length

int length


Package sim.field.continuous

Class sim.field.continuous.Continuous2D extends SparseField implements Serializable

Serialized Fields

doubleLocationHash

java.util.HashMap doubleLocationHash
Where we store the Double2D values hashed by object


width

double width

height

double height

discretization

double discretization

Class sim.field.continuous.Continuous3D extends SparseField implements Serializable

Serialized Fields

doubleLocationHash

java.util.HashMap doubleLocationHash
Where we store the Double3D values hashed by object


width

double width

height

double height

length

double length

discretization

double discretization


Package sim.field.network

Class sim.field.network.Edge extends java.lang.Object implements Serializable

Serialized Fields

owner

NetworkField owner

from

java.lang.Object from
The node from where the edge leaves


to

java.lang.Object to
The node where the edge enters


info

java.lang.Object info
Other information (maybe cost) associated with the edge


indexFrom

int indexFrom

indexTo

int indexTo

Class sim.field.network.NetworkField extends java.lang.Object implements Serializable

Serialized Fields

indexOutInHash

java.util.HashMap indexOutInHash
Hashes NetworkField.IndexInOut structures by Node. These structures contain the incoming edges of the Node, its outgoing edges, and the index of the Node in the allNodes bag.


allNodes

Bag allNodes
All the objects in the sparse field. For fast scans. Do not rely on this bag always being the same object.

Class sim.field.network.NetworkField.IndexOutIn extends java.lang.Object implements Serializable

Serialized Fields

index

int index

out

Bag out

in

Bag in


Package sim.portrayal

Class sim.portrayal.FieldPortrayal.CustomInspector extends Inspector implements Serializable

Serialized Fields

positions

javax.swing.JLabel positions

fieldComponent

LabelledList fieldComponent

objectInspector

Inspector objectInspector

wrapper

LocationWrapper wrapper

lastObject

java.lang.Object lastObject

state

GUIState state

Class sim.portrayal.FieldPortrayal2D extends FieldPortrayal implements Serializable

Class sim.portrayal.Inspector extends javax.swing.JPanel implements Serializable

Class sim.portrayal.SimpleInspector extends Inspector implements Serializable

Serialized Fields

state

GUIState state

object

java.lang.Object object

propertyList

LabelledList propertyList

properties

Properties properties

members

PropertyField[] members

name

java.lang.String name

extraValue

javax.swing.JPanel extraValue

extraIndex

NumberTextField extraIndex

currentExtraIndex

int currentExtraIndex

len

int len

Class sim.portrayal.SimplePortrayal2D extends java.lang.Object implements Serializable


Package sim.portrayal.grid

Class sim.portrayal.grid.FastValueGridPortrayal2D extends ValueGridPortrayal2D implements Serializable

Serialized Fields

buffering

int buffering

immutableGrid

boolean immutableGrid

buffer

java.awt.image.BufferedImage buffer

Class sim.portrayal.grid.HexaObjectGridPortrayal2D extends ObjectGridPortrayal2D implements Serializable

Serialized Fields

xPoints

int[] xPoints

yPoints

int[] yPoints

xyC

double[] xyC

xyC_ul

double[] xyC_ul

xyC_up

double[] xyC_up

xyC_ur

double[] xyC_ur

Class sim.portrayal.grid.HexaSparseGridPortrayal2D extends SparseGridPortrayal2D implements Serializable

Serialized Fields

xPoints

int[] xPoints

yPoints

int[] yPoints

xyC

double[] xyC

xyC_ul

double[] xyC_ul

xyC_up

double[] xyC_up

xyC_ur

double[] xyC_ur

Class sim.portrayal.grid.HexaValueGridPortrayal2D extends ValueGridPortrayal2D implements Serializable

Serialized Fields

xPoints

int[] xPoints

yPoints

int[] yPoints

xyC

double[] xyC

xyC_ul

double[] xyC_ul

xyC_up

double[] xyC_up

xyC_ur

double[] xyC_ur

valueToPass

MutableDouble valueToPass

generalPath

java.awt.geom.GeneralPath generalPath

Class sim.portrayal.grid.ObjectGridPortrayal2D extends FieldPortrayal2D implements Serializable

Serialized Fields

field

ObjectGrid2D field

defaultPortrayal

SimplePortrayal2D defaultPortrayal

Class sim.portrayal.grid.SparseGridPortrayal2D extends FieldPortrayal2D implements Serializable

Serialized Fields

field

SparseGrid2D field

policy

DrawPolicy policy

defaultPortrayal

SimplePortrayal2D defaultPortrayal

Class sim.portrayal.grid.ValueGridPortrayal2D extends FieldPortrayal2D implements Serializable

Serialized Fields

field

AbstractGrid2D field

map

ColorMap map

defaultPortrayal

SimplePortrayal2D defaultPortrayal

valueName

java.lang.String valueName

valueToPass

MutableDouble valueToPass


Package sim.portrayal.continuous

Class sim.portrayal.continuous.ContinuousPortrayal2D extends FieldPortrayal2D implements Serializable

Serialized Fields

field

Continuous2D field

defaultPortrayal

SimplePortrayal2D defaultPortrayal


Package sim.portrayal.network

Class sim.portrayal.network.NetworkPortrayal2D extends FieldPortrayal2D implements Serializable

Serialized Fields

field

SpatialNetwork2D field

defaultPortrayal

SimpleEdgePortrayal2D defaultPortrayal

Class sim.portrayal.network.SimpleEdgePortrayal2D extends SimplePortrayal2D implements Serializable

Serialized Fields

fromPaint

java.awt.Paint fromPaint

toPaint

java.awt.Paint toPaint

labelPaint

java.awt.Paint labelPaint

labelFont

java.awt.Font labelFont


Package sim.portrayal.simple

Class sim.portrayal.simple.CircledPortrayal2D extends SimplePortrayal2D implements Serializable

Serialized Fields

or

double or
The pre-scaling radius


dr

int dr
The post-scaling radius offset


paint

java.awt.Paint paint
The Paint or Color of the circle


child

SimplePortrayal2D child

showCircle

boolean showCircle
Overrides all drawing.


onlyCircleWhenSelected

boolean onlyCircleWhenSelected

isSelected

boolean isSelected

Class sim.portrayal.simple.HexagonalPortrayal2D extends SimplePortrayal2D implements Serializable

Serialized Fields

paint

java.awt.Paint paint

xPoints

int[] xPoints

yPoints

int[] yPoints

drawFrame

boolean drawFrame

generalPath

java.awt.geom.GeneralPath generalPath

Class sim.portrayal.simple.ImagePortrayal2D extends RectanglePortrayal2D implements Serializable

Serialized Fields

image

java.awt.Image image

Class sim.portrayal.simple.LabelledPortrayal2D extends SimplePortrayal2D implements Serializable

Serialized Fields

ox

double ox
The pre-scaling offset from the object's origin.


oy

double oy
The pre-scaling offset from the object's origin.


dx

int dx
The post-scaling offset from the object's origin.


dy

int dy
The post-scaling offset from the object's origin.


align

int align
One of ALIGN_CENTER, ALIGN_LEFT, or ALIGN_RIGHT


font

java.awt.Font font
The font of the text.


paint

java.awt.Paint paint
The Paint or Color of the text


label

java.lang.String label

child

SimplePortrayal2D child

showLabel

boolean showLabel
Overrides all drawing.


onlyLabelWhenSelected

boolean onlyLabelWhenSelected

isSelected

boolean isSelected

Class sim.portrayal.simple.OrientedPortrayal2D extends SimplePortrayal2D implements Serializable

Serialized Fields

or

double or
The pre-scaling length


dr

int dr
The post-scaling length offset


paint

java.awt.Paint paint
The Paint or Color of the line


child

SimplePortrayal2D child

showLine

boolean showLine
Overrides all drawing.

Class sim.portrayal.simple.OvalPortrayal2D extends SimplePortrayal2D implements Serializable

Serialized Fields

paint

java.awt.Paint paint

scale

double scale

Class sim.portrayal.simple.RectanglePortrayal2D extends SimplePortrayal2D implements Serializable

Serialized Fields

paint

java.awt.Paint paint

scale

double scale

Class sim.portrayal.simple.ValuePortrayal2D extends RectanglePortrayal2D implements Serializable

Serialized Fields

level

double level

isTransparent

boolean isTransparent

parent

ValueGridPortrayal2D parent


Package ec.util

Class ec.util.MersenneTwisterFast extends java.lang.Object implements Serializable

Serialized Fields

mt

int[] mt

mti

int mti

mag01

int[] mag01

__nextNextGaussian

double __nextNextGaussian

__haveNextNextGaussian

boolean __haveNextNextGaussian


Package sim.portrayal3d

Class sim.portrayal3d.FieldPortrayal3D extends FieldPortrayal implements Serializable

Serialized Fields

field

java.lang.Object field

immutableField

boolean immutableField

internalTransform

javax.media.j3d.Transform3D internalTransform

updateInternalTransform

boolean updateInternalTransform

defaultPortrayal

SimplePortrayal3D defaultPortrayal
Nice simple white cube as default portrayal for objects that do not have any other specified to them Note that it is not final, so it can be replaced. It was chosen for its low triangle-count.

Class sim.portrayal3d.SimplePortrayal3D extends java.lang.Object implements Serializable

Serialized Fields

parentPortrayal

FieldPortrayal3D parentPortrayal
Used by the SimplePortrayal3D to add its parent to its pickInfo object when the user picks the SimplePortrayal3D.

Class sim.portrayal3d.SparseFieldPortrayal3D extends FieldPortrayal3D implements Serializable


Package sim.portrayal3d.grid

Class sim.portrayal3d.grid.SparseGrid2DPortrayal3D extends SparseGridPortrayal3D implements Serializable

Serialized Fields

zScale

double zScale

Class sim.portrayal3d.grid.SparseGridPortrayal3D extends SparseFieldPortrayal3D implements Serializable

Class sim.portrayal3d.grid.ValueGrid2DPortrayal3D extends FieldPortrayal3D implements Serializable

Serialized Fields

field

Grid2D field

image

java.awt.Image image

transparency

float transparency
Non-image transparency: 1.0f is fully opaque, 0.0f is fully transparent.


valueName

java.lang.String valueName

mPolyAttributes

javax.media.j3d.PolygonAttributes mPolyAttributes

_def

QuadPortrayal _def

coords

float[] coords

colors

float[] colors

resetField

boolean resetField

tmpVect

javax.vecmath.Vector3d tmpVect
tmp Vector3d


tmpLocalT

javax.media.j3d.Transform3D tmpLocalT
tmp Transform3D it is reused, since the TGs are copying it internally


tmpGCI

ValueGridCellInfo tmpGCI
allocated in portray, and heavily reused in create/update model to avoid "new"s


Package sim.portrayal3d.continuous

Class sim.portrayal3d.continuous.ContinuousPortrayal3D extends SparseFieldPortrayal3D implements Serializable


Package sim.portrayal3d.simple

Class sim.portrayal3d.simple.Axes extends SimplePortrayal3D implements Serializable

Serialized Fields

mArrowDia

float mArrowDia
thickness of the arrows


mLetters

boolean mLetters
flag showing/hidding the letters

Class sim.portrayal3d.simple.CircledPortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

scale

float scale

appearance

javax.media.j3d.Appearance appearance

child

SimplePortrayal3D child

showCircle

boolean showCircle
Overrides all drawing.


onlyCircleWhenSelected

boolean onlyCircleWhenSelected

isSelected

boolean isSelected

Class sim.portrayal3d.simple.ConePortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

scale

float scale

appearance

javax.media.j3d.Appearance appearance

generateNormals

boolean generateNormals

generateTextureCoordinates

boolean generateTextureCoordinates

Class sim.portrayal3d.simple.CubePortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

scale

float scale

appearance

javax.media.j3d.Appearance appearance

generateNormals

boolean generateNormals

generateTextureCoordinates

boolean generateTextureCoordinates

Class sim.portrayal3d.simple.CylinderPortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

scale

float scale

appearance

javax.media.j3d.Appearance appearance

generateNormals

boolean generateNormals

generateTextureCoordinates

boolean generateTextureCoordinates

Class sim.portrayal3d.simple.ImagePortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

shape

javax.media.j3d.Shape3D shape

Class sim.portrayal3d.simple.LabelledPortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

scale

float scale

color

java.awt.Color color

offset

javax.media.j3d.Transform3D offset

font

java.awt.Font font

child

SimplePortrayal3D child

label

java.lang.String label

showLabel

boolean showLabel
Overrides all drawing.


onlyLabelWhenSelected

boolean onlyLabelWhenSelected

isSelected

boolean isSelected

Class sim.portrayal3d.simple.LightPortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

light

javax.media.j3d.Light light

Class sim.portrayal3d.simple.Shape3DPortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

shape

javax.media.j3d.Shape3D shape

appearance

javax.media.j3d.Appearance appearance

Class sim.portrayal3d.simple.SharedGroupPortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

group

javax.media.j3d.SharedGroup group

Class sim.portrayal3d.simple.SpherePortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

scale

float scale

appearance

javax.media.j3d.Appearance appearance

divisions

int divisions

generateNormals

boolean generateNormals

generateTextureCoordinates

boolean generateTextureCoordinates

Class sim.portrayal3d.simple.TransformedPortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

child

SimplePortrayal3D child

internalTransform

javax.media.j3d.Transform3D internalTransform

updateInternalTransform

boolean updateInternalTransform

Class sim.portrayal3d.simple.WireFrameBoxPortrayal3D extends SimplePortrayal3D implements Serializable

Serialized Fields

box

javax.media.j3d.LineStripArray box

appearance

javax.media.j3d.Appearance appearance


Package sim.portrayal3d.grid.quad

Class sim.portrayal3d.grid.quad.MeshPortrayal extends QuadPortrayal implements Serializable

Serialized Fields

tmpCoords

float[] tmpCoords

tmpColor

float[] tmpColor

Class sim.portrayal3d.grid.quad.QuadPortrayal extends java.lang.Object implements Serializable

Serialized Fields

zScale

float zScale
How much we move the quad up or down for a given value.


colorDispenser

ColorMap colorDispenser
Our color map for values

Class sim.portrayal3d.grid.quad.TilePortrayal extends QuadPortrayal implements Serializable

Serialized Fields

tmpCoords

float[] tmpCoords

tmpColor

float[] tmpColor


Package sim.display3d

Class sim.display3d.CapturingCanvas3D extends javax.media.j3d.Canvas3D implements Serializable

Serialized Fields

writeBuffer_

boolean writeBuffer_

keepOnWriting_

boolean keepOnWriting_

buffer_

java.awt.image.BufferedImage buffer_

x

int x

y

int y

width

int width

height

int height

Class sim.display3d.Display3D extends javax.swing.JPanel implements Serializable

Serialized Fields

portrayals

java.util.ArrayList portrayals

stopper

Stoppable stopper

simulation

GUIState simulation

header

javax.swing.JComponent header

movieButton

javax.swing.JButton movieButton

snapshotButton

javax.swing.JButton snapshotButton

optionButton

javax.swing.JButton optionButton

interval

long interval

intervalLock

java.lang.Object intervalLock

canvas

CapturingCanvas3D canvas
The Java3D canvas holding the universe. A good time to fool around with this is in the sceneGraphCreated() hook.


universe

com.sun.j3d.utils.universe.SimpleUniverse universe
The Java3D universe. Created (and recreated) by createSceneGraph. A good time to fool around with this is in the sceneGraphCreated() hook.


root

javax.media.j3d.BranchGroup root
The root scene graph node in the Java3D universe. Created (and recreated) by createSceneGraph. This is a good place to hang things you don't want auto-rotated nor transformed by the Display3D. Hang things off of here in the sceneGraphCreated() hook.


portrayalSwitch

javax.media.j3d.Switch portrayalSwitch

portrayalSwitchMask

java.util.BitSet portrayalSwitchMask

auxillarySwitch

javax.media.j3d.Switch auxillarySwitch

auxillarySwitchMask

java.util.BitSet auxillarySwitchMask

lastTimestamp

long lastTimestamp

movieMaker

MovieMaker movieMaker
The MovieMaker


tapeMovie

boolean tapeMovie

movieFile

java.io.File movieFile

fps

int fps

movieFormat

Format movieFormat

popup

javax.swing.JPopupMenu popup

togglebutton

javax.swing.JToggleButton togglebutton

subgraphCount

int subgraphCount

dirty

boolean dirty

backdropAppearance

javax.media.j3d.Appearance backdropAppearance

backdropImage

java.awt.Image backdropImage

backdropColor

java.awt.Color backdropColor

bogusMover

javax.media.j3d.PointArray bogusMover

globalModelTransformGroup

javax.media.j3d.TransformGroup globalModelTransformGroup
The TransformGroup which holds the switch holding the portrayal's scene graph models. A good time to fool around with this is in the sceneGraphCreated() hook. This is a good place to hang stuff which you want to get rotated AND transformed along with the scene graph.


DEFAULT_FIELD_OF_VIEW

double DEFAULT_FIELD_OF_VIEW
See Also:
Constant Field Values

scale

double scale

scaleLock

java.lang.Object scaleLock

autoSpin

javax.media.j3d.RotationInterpolator autoSpin

autoSpinBackground

javax.media.j3d.RotationInterpolator autoSpinBackground

autoSpinTransformGroup

javax.media.j3d.TransformGroup autoSpinTransformGroup
The TransformGroup which used to spin the underlying model. This is a good place to hang stuff which you want to get rotated along with the models in the scene graph, but DON'T want transformed along with the scene graph.


autoSpinBackgroundTransformGroup

javax.media.j3d.TransformGroup autoSpinBackgroundTransformGroup

mOrbitBehavior

com.sun.j3d.utils.behaviors.vp.OrbitBehavior mOrbitBehavior

mSelectBehavior

SelectionBehavior mSelectBehavior

orbitRotateXCheckBox

javax.swing.JCheckBox orbitRotateXCheckBox

orbitRotateYCheckBox

javax.swing.JCheckBox orbitRotateYCheckBox

orbitTranslateXCheckBox

javax.swing.JCheckBox orbitTranslateXCheckBox

orbitTranslateYCheckBox

javax.swing.JCheckBox orbitTranslateYCheckBox

orbitZoomCheckBox

javax.swing.JCheckBox orbitZoomCheckBox

selectBehCheckBox

javax.swing.JCheckBox selectBehCheckBox

polyPoint

javax.swing.JRadioButton polyPoint

polyLine

javax.swing.JRadioButton polyLine

polyFill

javax.swing.JRadioButton polyFill

polyCullNone

javax.swing.JRadioButton polyCullNone

polyCullFront

javax.swing.JRadioButton polyCullFront

polyCullBack

javax.swing.JRadioButton polyCullBack

showAxesCheckBox

javax.swing.JCheckBox showAxesCheckBox

showBackgroundCheckBox

javax.swing.JCheckBox showBackgroundCheckBox

optionsFrame

javax.swing.JFrame optionsFrame

rotAxis_X

NumberTextField rotAxis_X

rotAxis_Y

NumberTextField rotAxis_Y

rotAxis_Z

NumberTextField rotAxis_Z

spinDuration

NumberTextField spinDuration

rasterizationMode

int rasterizationMode
Sets the rasterization mode for configurable polygon portrayals. Mode can be PolygonAttributes.POLYGON_FILL, PolygonAttributes.POLYGON_LINE, or PolygonAttributes.POLYGON_POINT.


cullingMode

int cullingMode
Sets the rasterization mode for configurable polygon portrayals. Mode can be PolygonAttributes.CULL_BACK, PolygonAttributes.CULL_FRONT, or PolygonAttributes.CULL_NONE.