Skip navigation links
A B C D E F G H I L M N O P Q R S T U V W X Y Z _ 

A

AbstractCollectable<V> - Class in de.zmt.output.collectable
A simple implementation of Collectable storing data in a List , which can be cleared and replaced by initial values.
AbstractCollectable() - Constructor for class de.zmt.output.collectable.AbstractCollectable
 
AbstractCollectable.MyProperties - Class in de.zmt.output.collectable
 
AbstractMultiCollectable<V> - Class in de.zmt.output.collectable
Abstract MultiCollectable implementation backed by a two-dimensional list.
AbstractMultiCollectable() - Constructor for class de.zmt.output.collectable.AbstractMultiCollectable
 
accessor() - Method in class de.zmt.params.MapParamDefinition
Returns a MapAccessor for the map.
accessor() - Method in interface de.zmt.params.ParamDefinition
Returns the DefinitionAccessor to access parameters via automation.
add(int, int) - Method in class de.zmt.util.Grid2DUtil.LocationsResult
 
addCollector(Collector, Output.CollectorOption...) - Method in class de.zmt.output.Output
Adds a Collector.
addDefinition(Class<T>) - Method in class de.zmt.params.BaseSimParamsNode
Adds a ParamDefinition if allowed internally and to the inspector.
addDefinition(Class<T>) - Method in interface de.zmt.params.SimParams
Adds a ParamDefinition to this parameters object by instantiating given class.
addDefinitionInternal(ParamDefinition) - Method in class de.zmt.params.BaseSimParamsNode
Implementing classes need to handle adding an allowed definition here.
addDefinitionMenuItem(Class<? extends ParamDefinition>) - Method in class sim.display.ZmtConsole
Adds menu item for adding new parameter definition objects to the 'Add' menu.
addDefinitionMenuItem(Class<? extends ParamDefinition>, String) - Method in class sim.display.ZmtConsole
Adds menu item for adding new parameter definition objects to the 'Add' menu.
addDefinitionMenuItem(Class<? extends ParamDefinition>, String, JMenu) - Method in class sim.display.ZmtConsole
Adds menu item for adding new parameter definition objects.
addDefinitionTab(ParamDefinition) - Method in class sim.portrayal.inspector.ParamsInspector
Adds inspector of given ParamDefinition as a new tab.
addDefinitionTabs(Collection<? extends ParamDefinition>) - Method in class sim.portrayal.inspector.ParamsInspector
Adds an inspector for every given definition as a new tab.
addInspectMenuItem(String, ZmtConsole.InspectorSupplier) - Method in class sim.display.ZmtConsole
Appends a menu item to the 'Inspect' menu adding the Inspector from given supplier when triggered.
addInspectMenuItem(String, Function<T, Object>) - Method in class sim.display.ZmtConsole
Appends a menu item adding the Inspector of an object from a supplier function when triggered.
addInspectMenuItem(String, Function<T, Object>, JMenu) - Method in class sim.display.ZmtConsole
Appends a menu item adding the Inspector of an object from a supplier function when triggered.
addInspectMenuItem(String, ZmtConsole.InspectorSupplier, JMenu) - Method in class sim.display.ZmtConsole
Appends a menu item adding the Inspector from given supplier when triggered.
addInterval(double, double) - Method in class sim.util.distribution.PiecewiseLinear
Adds an interval spanning from the maximum value of the previous interval to the given, mapping from source to target.
addListener(GuiListener) - Method in class sim.display.ZmtGUIState
Adds a GuiListener to be notified on GUI events.
addObject(T, GUIState) - Method in class sim.portrayal.inspector.CombinedInspector
Adds the inspector of a given object.
addObject(Object, GUIState, String) - Method in class sim.portrayal.inspector.CombinedInspector
Adds the inspector of a given object.
addTimeBoxItem(ZmtConsole.TimeBoxItem) - Method in class sim.display.ZmtConsole
Adds a ZmtConsole.TimeBoxItem to the combo box at the bottom of the console window.
adjustCacheSize(int, int) - Static method in class sim.util.Int2DCache
Adjust the cache if needed, to fit given dimensions.
afterCollect(AfterMsgT, ColT) - Method in class de.zmt.output.strategy.MultiMessageCollectStrategy
Called once after collecting data from simulation objects.
AfterMessage - Interface in de.zmt.output.message
Tagging interface for messages sent after collection.
AfterMessageFactory<T extends AfterMessage> - Interface in de.zmt.output.message
Factory for AfterMessage objects.
awakeFromCheckpoint() - Method in class sim.engine.BaseZmtSimState
 

B

BaseParamDefinition - Class in de.zmt.params
ParamDefinition skeletal implementation.
BaseParamDefinition() - Constructor for class de.zmt.params.BaseParamDefinition
 
BaseParamsNode - Class in de.zmt.params
Abstract base class for ParamsNode implementing BaseParamsNode.hashCode() and BaseParamsNode.equals(Object) based on the return value of ParamsNode.getDefinitions().
BaseParamsNode() - Constructor for class de.zmt.params.BaseParamsNode
 
BaseSimParamsNode - Class in de.zmt.params
Abstract implementation of a SimParams node.
BaseSimParamsNode() - Constructor for class de.zmt.params.BaseSimParamsNode
 
BaseZmtSimState<T extends SimParams> - Class in sim.engine
Super class for SimState of ZMT simulations.
BaseZmtSimState() - Constructor for class sim.engine.BaseZmtSimState
 
beforeCollect(BeforeMsgT, ColT) - Method in class de.zmt.output.strategy.MultiMessageCollectStrategy
Called once before collecting data from simulation objects.
BeforeMessage - Interface in de.zmt.output.message
Tagging interface for messages sent before collection.
BeforeMessageFactory<T extends BeforeMessage> - Interface in de.zmt.output.message
Factory for BeforeMessage objects.
BooleanGrid2D - Class in sim.field.grid
Class for storing boolean values over a two-dimensional grid.
BooleanGrid2D(int, int) - Constructor for class sim.field.grid.BooleanGrid2D
Constructs new boolean grid.
BooleanGrid2D(BooleanGrid2D) - Constructor for class sim.field.grid.BooleanGrid2D
Constructs new boolean grid by copying values from other boolean grid.
BooleanGrid2D(boolean[][]) - Constructor for class sim.field.grid.BooleanGrid2D
Constructs new boolean grid by copying values from given field.

C

canConvert(Class) - Method in class sim.util.Rotation2D.MyConverter
 
CategoryCollectable<K,ColT extends Collectable<V>,V> - Class in de.zmt.output.collectable
Collectable that acts on a map containing categories each pointing to a collectable.
CategoryCollectable(Stream<K>, Function<K, ColT>) - Constructor for class de.zmt.output.collectable.CategoryCollectable
Constructs a new CategoryCollectable from given categories.
CategoryCollectable(Map<K, ColT>) - Constructor for class de.zmt.output.collectable.CategoryCollectable
Constructs a new CategoryCollectable from given map.
CheckBoxInspector<T> - Class in sim.portrayal.inspector
An Inspector that allows to toggle the presence of elements in a Set within a GUI.
CheckBoxInspector(Set<T>, Collection<T>, GUIState, String) - Constructor for class sim.portrayal.inspector.CheckBoxInspector
Instantiates a new CheckBoxInspector.
CheckBoxInspector.ProvidesCheckBoxInspector<T> - Class in sim.portrayal.inspector
Helper class to wrap the CheckBoxInspector into the ProvidesInspector interface.
clamp(int, int, int) - Static method in class de.zmt.util.MathUtil
 
clamp(long, long, long) - Static method in class de.zmt.util.MathUtil
 
clamp(float, float, float) - Static method in class de.zmt.util.MathUtil
 
clamp(double, double, double) - Static method in class de.zmt.util.MathUtil
 
clear() - Method in class de.zmt.output.collectable.AbstractCollectable
 
clear() - Method in class de.zmt.output.collectable.CategoryCollectable
Clears every contained collectable.
clear() - Method in interface de.zmt.output.collectable.Collectable
Clears the data contained in this collectable, i.e.
clear() - Method in class de.zmt.output.collectable.EnumCollectable
Clears all data stored in this Collectable, i.e.
clear() - Method in class de.zmt.util.Grid2DUtil.LocationsResult
 
clone(T) - Static method in class de.zmt.util.ParamsUtil
Clones a Serializable object using serialization.
close() - Method in class de.zmt.output.Output
 
close() - Method in class de.zmt.output.writing.LineOutputWriter
 
close() - Method in interface de.zmt.output.writing.OutputWriter
If this writer keeps any resources open that needs closing, it has to be done here.
CloseButtonTabComponent - Class in sim.portrayal.inspector
Tab component with a label displaying the definition's title and a close button that removes the associated tab.
CloseButtonTabComponent(Component, ActionListener) - Constructor for class sim.portrayal.inspector.CloseButtonTabComponent
Constructs a new CloseButtonTabComponent placing the close button next to the given child component.
collect(SimState) - Method in interface de.zmt.output.collector.Collector
Collects data.
collect(SimState) - Method in class de.zmt.output.collector.StrategyCollector
 
collect(CollectMsgT, ColT) - Method in class de.zmt.output.strategy.MessageCollectStrategy
Collects data.
Collectable<V> - Interface in de.zmt.output.collectable
An aggregation of data, which resembles a row in a CSV file.
collectInterval(int) - Static method in class de.zmt.output.Output.CollectorOption
Creates a Output.CollectorOption that associates the collector to be added with a collect interval.
CollectMessage - Interface in de.zmt.output.message
Messages sent during collection to pass necessary data onto the Collector.
CollectMessageFactory<T extends CollectMessage> - Interface in de.zmt.output.message
Factory for CollectMessage objects.
Collector - Interface in de.zmt.output.collector
Collects data from simulation objects to be further processed in Output.
CollectStrategy<ColT extends Collectable<?>> - Interface in de.zmt.output.strategy
Strategy specifying the collection process within a Collector.
CombinedInspector - Class in sim.portrayal.inspector
Combines multiple inspectors and aligns them vertically.
CombinedInspector(Collection<? extends Inspector>) - Constructor for class sim.portrayal.inspector.CombinedInspector
Deprecated.
CombinedInspector(Stream<? extends Inspector>) - Constructor for class sim.portrayal.inspector.CombinedInspector
Constructs a CombinedInspector.
CombinedInspector(Inspector...) - Constructor for class sim.portrayal.inspector.CombinedInspector
Constructs a CombinedInspector.
compareTo(Rotation2D) - Method in class sim.util.Rotation2D
 
create(ColT, CollectStrategy<ColT>) - Static method in class de.zmt.output.collector.StrategyCollector
create(T) - Static method in interface de.zmt.params.accessor.DefinitionAccessor.Identifier
Creates an identifier containing the giving object with a toString() method displaying the object.
create(String, Function<SimState, String>) - Static method in interface sim.display.ZmtConsole.TimeBoxItem
Convenience factory method to create a ZmtConsole.TimeBoxItem with the specified Function for creating text.
createAfterMessage(SimState) - Method in interface de.zmt.output.message.AfterMessageFactory
Creates an AfterMessage sent to this collector at the end of the data collection cycle.
createBeforeMessage(SimState) - Method in interface de.zmt.output.message.BeforeMessageFactory
Creates a BeforeMessage sent to this collector when at the start of the data collection cycle.
createCategoryHeaderPrefix(K) - Method in class de.zmt.output.collectable.CategoryCollectable
Called when creating headers from categories and collectables.
createCollectMessages(SimState) - Method in interface de.zmt.output.message.CollectMessageFactory
Creates a stream CollectMessage objects.
createFromObjects(Stream<?>, GUIState) - Static method in class sim.portrayal.inspector.CombinedInspector
Creates a CombinedInspector from given objects.
createFromObjects(Stream<T>, Function<T, String>, GUIState) - Static method in class sim.portrayal.inspector.CombinedInspector
Creates a CombinedInspector from given objects.
createSimple(Class<T>) - Static method in interface de.zmt.output.message.CollectMessageFactory
Creates a new CollectMessageFactory that creates one message containing the SimState cast to the given type.
createStatusMessage(double) - Method in class sim.engine.ZmtSimState
Creates a message to inform about the current status of the running simulation.
createText(SimState) - Method in interface sim.display.ZmtConsole.TimeBoxItem
Creates the text displayed in the label next to the time box.
createWriter(Path) - Method in interface de.zmt.output.collectable.Collectable
Returns fitting OutputWriter for this collectable.
createWriter(Path) - Method in interface de.zmt.output.collectable.MultiCollectable
 
createWriter(Path) - Method in interface de.zmt.output.collectable.OneShotCollectable
 
createWriter(Path) - Method in interface de.zmt.output.collector.Collector
Returns fitting OutputWriter for this collector.
createWriter(Path) - Method in class de.zmt.output.collector.StrategyCollector
Returns the writer from collectable.

D

de.zmt.output - package de.zmt.output
Classes for organizing simulation output to CSV files and GUI.
de.zmt.output.collectable - package de.zmt.output.collectable
Contains classes and interfaces specifying how collected data is stored.
de.zmt.output.collector - package de.zmt.output.collector
Contains classes and interfaces for specifying how to collect data.
de.zmt.output.message - package de.zmt.output.message
Message interfaces and implementations sent to collectors.
de.zmt.output.strategy - package de.zmt.output.strategy
Contains classes and interfaces specifying the collection process.
de.zmt.output.writing - package de.zmt.output.writing
Classes for writing output data from collectors to files.
de.zmt.params - package de.zmt.params
Classes and interfaces to handle simulation parameters.
de.zmt.params.accessor - package de.zmt.params.accessor
 
de.zmt.util - package de.zmt.util
 
DEFAULT - Static variable in interface de.zmt.output.message.AfterMessageFactory
 
DEFAULT - Static variable in interface de.zmt.output.message.BeforeMessageFactory
 
Default() - Constructor for class de.zmt.params.MapParamDefinition.Default
Constructs a new default MapParamDefinition consisting of an empty LinkedHashMap.
Default(Map<K, V>) - Constructor for class de.zmt.params.MapParamDefinition.Default
Constructs a new default MapParamDefinition consisting of the given map.
DEFAULT_FILENAME - Static variable in interface de.zmt.params.SimParams
 
DEFAULT_INPUT_DIR - Static variable in class sim.engine.ZmtSimState
Default directory for loading the parameters from.
DEFAULT_OUTPUT_DIR - Static variable in class sim.engine.ZmtSimState
Default directory to write simulation output.
DefinitionAccessor<V> - Interface in de.zmt.params.accessor
An accessor for parameters in a ParamDefinition.
DefinitionAccessor.Identifier<T> - Interface in de.zmt.params.accessor
An identifier wrapping a key object to get a value from a DefinitionAccessor.
DirectionConstants - Class in sim.util
Contains constant of directions represented as Double2D unit vectors.
DirectionPortrayal - Class in sim.portrayal
Draws directions using lines with dots at their ends.
DirectionPortrayal() - Constructor for class sim.portrayal.DirectionPortrayal
Constructs a new DirectionPortrayal with default settings.
DirectionPortrayal(Paint) - Constructor for class sim.portrayal.DirectionPortrayal
Constructs a new DirectionPortrayal with the given paint for the directions.
DoubleNeighborsResult() - Constructor for class de.zmt.util.Grid2DUtil.DoubleNeighborsResult
 
DoubleNeighborsResult(Grid2DUtil.LocationsResult, DoubleBag) - Constructor for class de.zmt.util.Grid2DUtil.DoubleNeighborsResult
 
doubleValue() - Method in class sim.util.TemporalValuable
Seconds of the duration between from and to temporals.
draw(Object, Graphics2D, DrawInfo2D) - Method in class sim.portrayal.DirectionPortrayal
 

E

EAST - Static variable in class sim.util.DirectionConstants
Direction pointing east: (1,0)
EIGHTH - Static variable in class sim.util.Rotation2D
The rotation of an eighth revolution.
EMPTY - Static variable in interface de.zmt.output.collector.Collector
An empty Collector that does nothing.
EMPTY - Static variable in interface de.zmt.output.writing.OutputWriter
An empty writer that does nothing.
EnumCollectable<K extends Enum<K>,V> - Class in de.zmt.output.collectable
Collectable storing values for enum constants.
EnumCollectable(Class<K>, String) - Constructor for class de.zmt.output.collectable.EnumCollectable
Constructs a new EnumCollectable using all enum constants in given type.
EnumCollectable(Set<K>, String) - Constructor for class de.zmt.output.collectable.EnumCollectable
Constructs a new AbstractEnumCollectable using all enum constants in given type.
equals(Object) - Method in class de.zmt.params.BaseParamsNode
 
equals(Object) - Method in class de.zmt.params.MapParamDefinition
 
equals(Object) - Method in class sim.util.Rotation2D
 
evaluateCdf(double) - Method in class sim.util.distribution.PiecewiseLinear
Evaluates cumulative distribution function for this distribution.

F

FieldPortrayable<T> - Interface in sim.portrayal.portrayable
Simple portrayable to provide data for portraying fields.
finish() - Method in class sim.display.ZmtGUIState
 
finish() - Method in class sim.engine.ZmtSimState
 
finished(ZmtSimState) - Method in interface sim.display.GuiListener
Called right after the simulation is finished.
fromAngle(double) - Static method in class sim.util.Rotation2D
Returns the rotation which is equal to the given angle.
fromBetween(Double2D, Double2D) - Static method in class sim.util.Rotation2D
Creates a rotation from direction1 to direction2.
fromVector(Double2D) - Static method in class sim.util.Rotation2D
Creates a rotation from a direction vector.

G

generateFileName(String, String...) - Static method in class de.zmt.output.Output
Generates a file name with each given string separated from the other.
generateFileName(int, String, String...) - Static method in class de.zmt.output.Output
Generates a file name from given string and an index number.
get() - Method in class de.zmt.output.message.SimpleCollectMessage
 
get(DefinitionAccessor.Identifier<?>) - Method in interface de.zmt.params.accessor.DefinitionAccessor
Gets the value the given identifier is pointing at.
get() - Method in interface de.zmt.params.accessor.DefinitionAccessor.Identifier
Returns the object wrapped by this identifier
get(DefinitionAccessor.Identifier<?>) - Method in class de.zmt.params.accessor.MapAccessor
 
get(DefinitionAccessor.Identifier<?>) - Method in class de.zmt.params.accessor.ReflectionAccessor
 
get(int, int) - Method in class sim.field.grid.BooleanGrid2D
Gets the value at given coordinate.
get(int, int) - Method in class sim.field.grid.LongGrid2D
Gets the value at given coordinate.
get(int, int) - Static method in class sim.util.Int2DCache
Gets Int2D object for given location from cache.
getAddMenu() - Method in class sim.display.ZmtConsole
Gets the menu for adding optional definitions.
getAfterMessageFactory() - Method in class de.zmt.output.strategy.MultiMessageCollectStrategy
Returns the AfterMessageFactory that creates suitable messages.
getAllowedDefinitionTypes() - Method in class de.zmt.params.BaseSimParamsNode
Returns allowed types which definitions are checked on when added.
getBeforeMessageFactory() - Method in class de.zmt.output.strategy.MultiMessageCollectStrategy
Returns the BeforeMessageFactory that creates suitable messages.
getCategories() - Method in class de.zmt.output.collectable.CategoryCollectable
Returns the set of contained categories.
getCollectable(K) - Method in class de.zmt.output.collectable.CategoryCollectable
Returns the collectable associated with the given category.
getCollectable() - Method in class de.zmt.output.collector.StrategyCollector
Returns the Collectable to be processed by the strategy.
getCollectMessageFactory() - Method in class de.zmt.output.strategy.MessageCollectStrategy
Returns the CollectMessageFactory that creates suitable messages.
getCos() - Method in class sim.util.Rotation2D
Returns the cosine of this rotation.
getDefinitions() - Method in interface de.zmt.params.ParamsNode
 
getField() - Method in interface sim.portrayal.portrayable.FieldPortrayable
 
getHeight() - Static method in class sim.util.Int2DCache
 
getInspectMenu() - Method in class sim.display.ZmtConsole
Gets the menu for inspecting various things.
getInspector(GUIState, String) - Method in interface sim.display.ZmtConsole.InspectorSupplier
 
getInspector() - Method in class sim.display.ZmtGUIState
Returns a Inspector displaying SimParams.
getMap() - Method in class de.zmt.params.MapParamDefinition.Default
 
getMap() - Method in class de.zmt.params.MapParamDefinition
Gets the map this definition consists of.
getName(int) - Method in class de.zmt.output.collectable.AbstractCollectable.MyProperties
 
getName() - Method in interface de.zmt.output.collector.Collector
Returns the name of this collector.
getName() - Method in class de.zmt.output.collector.StrategyCollector
Returns the name of the collectable, which contents are displayed on inspection.
getNotAutomatableKeys() - Method in class de.zmt.params.MapParamDefinition
Gets the set of keys which are not automatable.
getOutput() - Method in class sim.engine.ZmtSimState
Gets the output object of this simulation.
getOutputPath() - Method in class sim.engine.BaseZmtSimState
 
getParams() - Method in class sim.engine.BaseZmtSimState
 
getParams() - Method in class sim.engine.ZmtSimState
Returns the SimParams object with the current configuration.
getParamsClass() - Method in class sim.engine.BaseZmtSimState
 
getParamsClass() - Method in class sim.engine.ZmtSimState
Returns the SimParams class used by this simulation.
getParamsMenu() - Method in class sim.display.ZmtConsole
Returns the menu for opening / saving parameters.
getScale() - Method in class sim.util.distribution.PiecewiseLinear
 
getSeed() - Method in interface de.zmt.params.SimParams
 
getSeparator() - Method in class de.zmt.output.collectable.CategoryCollectable
Separator in headers between category prefix and collectable's header.
getShift() - Method in class sim.util.distribution.PiecewiseLinear
 
getSimObject() - Method in class de.zmt.output.message.SimpleCollectMessage
Returns the contained simulation object.
getSin() - Method in class sim.util.Rotation2D
Returns the sine of this rotation.
getSteps() - Method in interface de.zmt.output.message.AfterMessage
 
getStrategy() - Method in class de.zmt.output.collector.StrategyCollector
Returns the CollectStrategy to be used.
getTitle() - Method in interface de.zmt.params.ParamDefinition
Title appearing in ParamsInspector's tab list, also used in automation to discriminate between objects if there are several of one class.
getType(int) - Method in class de.zmt.output.collectable.AbstractCollectable.MyProperties
 
getUsedConstants() - Method in class de.zmt.output.collectable.EnumCollectable
Returns the constants used in this collectable.
getValue(int) - Method in class de.zmt.output.collectable.AbstractCollectable.MyProperties
 
getValue(Object) - Method in class de.zmt.output.collectable.EnumCollectable
Returns the value mapped to the given enumConstant.
getValue(ColumnK, RowK) - Method in class sim.portrayal.inspector.TableInspector
Returns the value from the inspected object for the given keys.
getVector() - Method in class sim.util.Rotation2D
Returns the rotation as direction vector.
getWidth() - Static method in class sim.util.Int2DCache
 
getWriter() - Method in class de.zmt.output.writing.LineOutputWriter
 
getXStreamInstance() - Static method in class de.zmt.util.ParamsUtil
Returns the XStream instance used for XML serialization.
Grid2DUtil - Class in de.zmt.util
Contains modified methods from AbstractGrid2D to handle real numbers in neighborhood lookup for position and distance.
Grid2DUtil.DoubleNeighborsResult - Class in de.zmt.util
Contains a Grid2DUtil.LocationsResult and values from these locations.
Grid2DUtil.LocationsResult - Class in de.zmt.util
Contains x and y grid positions from neighborhood lookup.
GuiListener - Interface in sim.display
 

H

HALF - Static variable in class sim.util.Rotation2D
The rotation of a half revolution.
hashCode() - Method in class de.zmt.params.BaseParamsNode
 
hashCode() - Method in class de.zmt.params.MapParamDefinition
 
hashCode() - Method in class sim.util.Rotation2D
 
hasNext() - Method in class sim.field.grid.ObjectGrid2DIterator
 
hidden(boolean) - Static method in class de.zmt.output.Output.CollectorOption
Creates a Output.CollectorOption that associates the collector to be added with a hidden state.
hideTitle() - Method in class de.zmt.params.BaseParamDefinition
 
hitObject(Object, DrawInfo2D) - Method in class sim.portrayal.DirectionPortrayal
Just check the whole square for hit detection.

I

identifiers() - Method in interface de.zmt.params.accessor.DefinitionAccessor
Returns the set of identifiers associated with a value.
identifiers() - Method in class de.zmt.params.accessor.MapAccessor
 
identifiers() - Method in class de.zmt.params.accessor.ReflectionAccessor
 
IllegalAutomationException(String) - Constructor for exception de.zmt.params.accessor.NotAutomatable.IllegalAutomationException
 
init(Controller) - Method in class sim.display.ZmtGUIState
 
inited(Controller) - Method in interface sim.display.GuiListener
 
instantiateDefinition(Class<T>) - Method in class de.zmt.params.BaseSimParamsNode
Instantiates given ParamDefinition class by calling its default constructor.
Int2DCache - Class in sim.util
Cache for storing Int2D objects.
interval(int) - Static method in class de.zmt.output.Output.CollectorOption
Creates a Output.CollectorOption that associates the collector to be added with a step interval.
isClockwise() - Method in class sim.util.Rotation2D
Returns true if the shortest path following this rotation is clockwise.
isReadWrite(int) - Method in class de.zmt.output.collectable.AbstractCollectable.MyProperties
 
isVolatile() - Method in class de.zmt.output.collectable.AbstractCollectable.MyProperties
 

L

LineOutputWriter<T extends Collectable<?>> - Class in de.zmt.output.writing
OutputWriter implementation writing data line by line in CSV format.
LineOutputWriter(T, Path) - Constructor for class de.zmt.output.writing.LineOutputWriter
Constructs a new WritingCollector.
load(SimState) - Method in class sim.display.ZmtGUIState
 
loaded(ZmtSimState, ZmtSimState) - Method in interface sim.display.GuiListener
Called right after a new simulation state was loaded.
locations - Variable in class de.zmt.util.Grid2DUtil.DoubleNeighborsResult
 
LocationsResult() - Constructor for class de.zmt.util.Grid2DUtil.LocationsResult
 
LocationsResult(IntBag, IntBag) - Constructor for class de.zmt.util.Grid2DUtil.LocationsResult
 
LongGrid2D - Class in sim.field.grid
 
LongGrid2D(int, int) - Constructor for class sim.field.grid.LongGrid2D
Constructs new boolean grid.
LongGrid2D(LongGrid2D) - Constructor for class sim.field.grid.LongGrid2D
Constructs new boolean grid by copying values from other boolean grid.
LongGrid2D(long[][]) - Constructor for class sim.field.grid.LongGrid2D
Constructs new boolean grid by copying values from given field.

M

MapAccessor<K,V> - Class in de.zmt.params.accessor
Wrapper implementation of DefinitionAccessor.
MapAccessor(Map<K, V>) - Constructor for class de.zmt.params.accessor.MapAccessor
Constructs a new MapAccessor.
MapAccessor(Map<K, V>, Set<K>) - Constructor for class de.zmt.params.accessor.MapAccessor
Constructs a new MapAccessor.
MapParamDefinition<K,V> - Class in de.zmt.params
A ParamDefinition using a map to store its parameters.
MapParamDefinition() - Constructor for class de.zmt.params.MapParamDefinition
 
MapParamDefinition.Default<K,V> - Class in de.zmt.params
MapParamDefinition default implementation .
marshal(Object, HierarchicalStreamWriter, MarshallingContext) - Method in class sim.util.Rotation2D.MyConverter
 
MathUtil - Class in de.zmt.util
Methods for various math operations.
MessageCollectStrategy<ColT extends Collectable<?>,CollectMsgT extends CollectMessage> - Class in de.zmt.output.strategy
Abstract implementation of CollectStrategy using CollectMessage objects created via factory.
MessageCollectStrategy() - Constructor for class de.zmt.output.strategy.MessageCollectStrategy
 
MINIMUM_FULL_DRAW_SCALE - Static variable in class sim.portrayal.DirectionPortrayal
If draw scale is below minimum, fewer directions are drawn to comply with the lack of space.
minimumLayoutSize(Container) - Method in class sim.portrayal.inspector.WrapLayout
Returns the minimum dimensions needed to layout the visible components contained in the specified target container.
MultiCollectable<V> - Interface in de.zmt.output.collectable
A Collectable which will return values for several rows.
MultiLineOutputWriter - Class in de.zmt.output.writing
OutputWriter implementation writing several lines from a MultiCollectable to one file.
MultiLineOutputWriter(MultiCollectable<?>, Path) - Constructor for class de.zmt.output.writing.MultiLineOutputWriter
 
MultiMessageCollectStrategy<ColT extends Collectable<?>,BeforeMsgT extends BeforeMessage,CollectMsgT extends CollectMessage,AfterMsgT extends AfterMessage> - Class in de.zmt.output.strategy
Abstract implementation of CollectStrategy using BeforeMessage, CollectMessage and AfterMessage objects for the collect process.
MultiMessageCollectStrategy() - Constructor for class de.zmt.output.strategy.MultiMessageCollectStrategy
 
multiply(Rotation2D) - Method in class sim.util.Rotation2D
Concatenates this rotation with another rotation.
multiply(Double2D) - Method in class sim.util.Rotation2D
Applies this rotation on a vector by rotating around its origin.
MyConverter() - Constructor for class sim.util.Rotation2D.MyConverter
 
MyProperties() - Constructor for class de.zmt.output.collectable.AbstractCollectable.MyProperties
 

N

name(String) - Static method in class de.zmt.output.Output.CollectorOption
Creates a Output.CollectorOption that associates the collector with a custom name.
NEUTRAL - Static variable in class sim.util.DirectionConstants
Neutral direction not pointing anywhere: (0,0)
next() - Method in class sim.field.grid.ObjectGrid2DIterator
 
nextDouble() - Method in class sim.util.distribution.PiecewiseLinear
 
nlerp(Rotation2D, double) - Method in class sim.util.Rotation2D
Performs a linear interpolation between the vectors of this rotation and the other.
normalizeAngle(double) - Static method in class de.zmt.util.MathUtil
Normalizes a radian angle between PI and -PI.
NORTH - Static variable in class sim.util.DirectionConstants
Direction pointing north: (0,-1)
NORTHEAST - Static variable in class sim.util.DirectionConstants
Direction pointing north-east: (1,-1)^
NORTHWEST - Static variable in class sim.util.DirectionConstants
Direction pointing north-west: (-1,-1)^
NotAutomatable - Annotation Type in de.zmt.params.accessor
Annotation to prevent a parameter from being changed via DefinitionAccessor.
NotAutomatable.IllegalAutomationException - Exception in de.zmt.params.accessor
Thrown if a property carrying NotAutomatable annotation is tried to be automated.
numProperties() - Method in class de.zmt.output.collectable.AbstractCollectable.MyProperties
 

O

ObjectGrid2DIterator - Class in sim.field.grid
Iterator over non-null elements within an ObjectGrid2D.
ObjectGrid2DIterator(ObjectGrid2D) - Constructor for class sim.field.grid.ObjectGrid2DIterator
 
obtainEnumDomain(Class<T>) - Static method in class de.zmt.util.ParamsUtil
Obtains the domain for given enumType to be used in Properties objects.
obtainHeaders() - Method in class de.zmt.output.collectable.CategoryCollectable
Obtains headers from collectables with the category's as prefix.
obtainHeaders() - Method in interface de.zmt.output.collectable.Collectable
Obtains headers.
obtainHeaders() - Method in class de.zmt.output.collectable.EnumCollectable
 
obtainInitialValue() - Method in class de.zmt.output.collectable.AbstractCollectable
 
obtainInitialValue() - Method in class de.zmt.output.collectable.EnumCollectable
 
obtainValues() - Method in class de.zmt.output.collectable.AbstractCollectable
 
obtainValues() - Method in class de.zmt.output.collectable.AbstractMultiCollectable
 
obtainValues() - Method in class de.zmt.output.collectable.CategoryCollectable
Obtains values from all collectables.
obtainValues() - Method in interface de.zmt.output.collectable.Collectable
Obtains values.
obtainValues() - Method in class de.zmt.output.collectable.EnumCollectable
 
obtainValues() - Method in interface de.zmt.output.collectable.MultiCollectable
Values contained in this Collectable.
OneShotCollectable<V> - Interface in de.zmt.output.collectable
A Collectable that contains data for a whole file, which is to be written to a new file after each collection.
OneShotOutputWriter - Class in de.zmt.output.writing
OutputWriter implementation writing data from a MultiCollectable into a step indexed file.
OneShotOutputWriter(MultiCollectable<?>, Path) - Constructor for class de.zmt.output.writing.OneShotOutputWriter
Constructs a new OneShotWritingCollector.
opposite() - Method in class sim.util.Rotation2D
Returns the opposite of this direction.
Output - Class in de.zmt.output
Class for organizing simulation output.
Output(Path) - Constructor for class de.zmt.output.Output
Constructs a new Output instance.
Output.CollectorOption - Class in de.zmt.output
Output.CollectorOption specify how an added Collector is handled by the Output object where it is added.
OutputWriter - Interface in de.zmt.output.writing
A writer used to write collected data.

P

ParamDefinition - Interface in de.zmt.params
A set of parameter definitions which is stored within a ParamsNode object.
ParamsInspector - Class in sim.portrayal.inspector
TabbedInspector with tabs from inspectors of ParamDefinition objects
ParamsInspector(GUIState, Consumer<ParamDefinition>) - Constructor for class sim.portrayal.inspector.ParamsInspector
Constructs a ParamsInspector without any tabs.
ParamsInspector(GUIState, Consumer<ParamDefinition>, Collection<? extends ParamDefinition>) - Constructor for class sim.portrayal.inspector.ParamsInspector
Constructs a ParamsInspector populated from given definitions.
ParamsInspector.InspectorRemovable - Annotation Type in sim.portrayal.inspector
Indicates that a ParamDefinition is optional and can be removed by the user.
ParamsNode - Interface in de.zmt.params
Parameters node object that contains a collection of other parameter definitions.
ParamsUtil - Class in de.zmt.util
 
PiecewiseLinear - Class in sim.util.distribution
Piecewise linear distribution mapping source intervals to target intervals.
PiecewiseLinear(double, double, MersenneTwisterFast) - Constructor for class sim.util.distribution.PiecewiseLinear
Constructs a new PiecewiseLinear distribution.
PiecewiseLinear(MersenneTwisterFast) - Constructor for class sim.util.distribution.PiecewiseLinear
Constructs a new PiecewiseLinear distribution with neutral shift (1) and scale (0).
Portrayable - Interface in sim.portrayal.portrayable
Used to encapsulate data needed for portrayal.
preferredLayoutSize(Container) - Method in class sim.portrayal.inspector.WrapLayout
Returns the preferred dimensions for this layout given the visible components in the specified target container.
process(SimState, ColT) - Method in interface de.zmt.output.strategy.CollectStrategy
Processes this strategy.
process(SimState, ColT) - Method in class de.zmt.output.strategy.MessageCollectStrategy
 
process(SimState, ColT) - Method in class de.zmt.output.strategy.MultiMessageCollectStrategy
 
properties() - Method in class de.zmt.output.collectable.AbstractCollectable
 
properties() - Method in class de.zmt.output.collectable.CategoryCollectable
 
properties() - Method in class de.zmt.output.collectable.EnumCollectable
 
provideInspector(GUIState, String) - Method in class de.zmt.output.collectable.AbstractMultiCollectable
 
provideInspector(GUIState, String) - Method in class de.zmt.output.collector.StrategyCollector
 
provideInspector(GUIState, String) - Method in class de.zmt.output.Output
 
provideInspector(GUIState, String) - Method in class de.zmt.params.BaseSimParamsNode
 
provideInspector(GUIState, String) - Method in class de.zmt.params.MapParamDefinition
 
provideInspector(GUIState, String) - Method in class sim.portrayal.inspector.CheckBoxInspector.ProvidesCheckBoxInspector
 
providePortrayable() - Method in interface sim.portrayal.portrayable.ProvidesPortrayable
 
ProvidesCheckBoxInspector(Set<T>, Collection<T>, String) - Constructor for class sim.portrayal.inspector.CheckBoxInspector.ProvidesCheckBoxInspector
Constructs a wrapper providing a CheckBoxInspector with given parameters.
ProvidesPortrayable<T extends Portrayable> - Interface in sim.portrayal.portrayable
Provides encapsulation of portrayed classes.
putValue(K, V) - Method in class de.zmt.output.collectable.EnumCollectable
Associates given enum constant with the given value.

Q

QUARTER - Static variable in class sim.util.Rotation2D
The rotation of a quarter revolution.
quit() - Method in interface sim.display.GuiListener
Called right after the GUIState quit.
quit() - Method in class sim.display.ZmtGUIState
 

R

readFromXml(Path, Class<T>) - Static method in class de.zmt.util.ParamsUtil
Reads an xml file and returns its data as an object, using XStream instance.
ReflectionAccessor - Class in de.zmt.params.accessor
The default DefinitionAccessor which accesses the automatable ParamDefinition's fields via reflection.
ReflectionAccessor(ParamDefinition) - Constructor for class de.zmt.params.accessor.ReflectionAccessor
Constructs a ReflectionAccessor targeting the given definition.
remove(int) - Method in class de.zmt.util.Grid2DUtil.DoubleNeighborsResult
 
remove(int) - Method in class de.zmt.util.Grid2DUtil.LocationsResult
 
removeDefinition(ParamDefinition) - Method in class de.zmt.params.BaseSimParamsNode
Removes a ParamDefinition internally and from inspector if present.
removeDefinition(ParamDefinition) - Method in interface de.zmt.params.SimParams
Removes a ParamDefinition from this parameters object.
removeDefinitionInternal(ParamDefinition) - Method in class de.zmt.params.BaseSimParamsNode
Implementing classes need to handle removing a definition here.
removeDefinitionTab(ParamDefinition) - Method in class sim.portrayal.inspector.ParamsInspector
Removes inspector of given ParamDefinition from the tabs.
removeListener(GuiListener) - Method in class sim.display.ZmtGUIState
Removes a GuiListener, which is no longer notified on GUI events.
removeTimeBoxItem(ZmtConsole.TimeBoxItem) - Method in class sim.display.ZmtConsole
Removes a ZmtConsole.TimeBoxItem from the combo box at the bottom of the console window.
Rotation2D - Class in sim.util
A two-dimensional rotation.
Rotation2D.MyConverter - Class in sim.util
 

S

scaleRectangle(Rectangle2D.Double, double) - Static method in class de.zmt.util.ShapeUtil
Scales a rectangle.
selectTimeBoxItem(ZmtConsole.TimeBoxItem) - Method in class sim.display.ZmtConsole
Selects a ZmtConsole.TimeBoxItem in the combo box at the bottom of the console window.
set(DefinitionAccessor.Identifier<?>, Object) - Method in interface de.zmt.params.accessor.DefinitionAccessor
Sets a value pointed at by a given identifier with a given one.
set(DefinitionAccessor.Identifier<?>, Object) - Method in class de.zmt.params.accessor.MapAccessor
 
set(DefinitionAccessor.Identifier<?>, Object) - Method in class de.zmt.params.accessor.ReflectionAccessor
 
set(int, int, boolean) - Method in class sim.field.grid.BooleanGrid2D
Sets the value at given coordinate.
set(int, int, long) - Method in class sim.field.grid.LongGrid2D
Sets the value at given coordinate.
setOutputPath(Path) - Method in class de.zmt.output.Output
Sets the output path for all associated writers.
setOutputPath(Path) - Method in class de.zmt.output.writing.LineOutputWriter
 
setOutputPath(Path) - Method in class de.zmt.output.writing.OneShotOutputWriter
Sets the output path base pointing to the directory where to create the files for each shot.
setOutputPath(Path) - Method in interface de.zmt.output.writing.OutputWriter
Sets the output path for this writer.
setOutputPath(Path) - Method in class sim.engine.BaseZmtSimState
 
setOutputPath(Path) - Method in class sim.engine.ZmtSimState
Sets the path to write simulation output.
setParams(SimParams) - Method in class sim.engine.BaseZmtSimState
 
setParams(SimParams) - Method in class sim.engine.ZmtSimState
Sets the current configuration to the given SimParams object.
setScale(double) - Method in class sim.util.distribution.PiecewiseLinear
 
setShift(double) - Method in class sim.util.distribution.PiecewiseLinear
 
setTo(boolean) - Method in class sim.field.grid.BooleanGrid2D
Sets all the locations in the grid to the provided value.
setTo(boolean[][]) - Method in class sim.field.grid.BooleanGrid2D
Sets this grid to the values from the given array.
setTo(long) - Method in class sim.field.grid.LongGrid2D
Sets all the locations in the grid to the provided value.
setTo(long[][]) - Method in class sim.field.grid.LongGrid2D
Sets this grid to the values from the given array.
setValue(ColumnK, RowK, V) - Method in class sim.portrayal.inspector.TableInspector
Sets the value on the inspected object for the given keys.
ShapeUtil - Class in de.zmt.util
 
ShapeUtil() - Constructor for class de.zmt.util.ShapeUtil
 
sim.display - package sim.display
 
sim.engine - package sim.engine
 
sim.field.grid - package sim.field.grid
 
sim.portrayal - package sim.portrayal
Classes for portraying the simulation in GUI.
sim.portrayal.inspector - package sim.portrayal.inspector
 
sim.portrayal.portrayable - package sim.portrayal.portrayable
 
sim.util - package sim.util
 
sim.util.distribution - package sim.util.distribution
 
SimParams - Interface in de.zmt.params
Simulation parameters that contain a value for the seed of the random number generator used.
SimpleCollectMessage<T> - Class in de.zmt.output.message
Simple implementation for CollectMessage containing a simulation object.
SimpleCollectMessage(T) - Constructor for class de.zmt.output.message.SimpleCollectMessage
Constructs a new SimpleCollectMessage containing the given object.
size() - Method in class de.zmt.util.Grid2DUtil.DoubleNeighborsResult
 
size() - Method in class de.zmt.util.Grid2DUtil.LocationsResult
 
slerp(Rotation2D, double) - Method in class sim.util.Rotation2D
Performs a spherical linear interpolation between this rotation and the other.
SOUTH - Static variable in class sim.util.DirectionConstants
Direction pointing south: (0,1)
SOUTHEAST - Static variable in class sim.util.DirectionConstants
Direction pointing south-east: (1,1)^
SOUTHWEST - Static variable in class sim.util.DirectionConstants
Direction pointing south-west: (-1,1)^
start() - Method in class sim.display.ZmtGUIState
 
start() - Method in class sim.engine.BaseZmtSimState
Sets seed from parameters.
started(ZmtSimState) - Method in interface sim.display.GuiListener
Called right after the simulation has started.
step(SimState) - Method in class de.zmt.output.Output
 
StrategyCollector<ColT extends Collectable<?>> - Class in de.zmt.output.collector
 
StrategyCollector() - Constructor for class de.zmt.output.collector.StrategyCollector
 

T

TableInspector<ColumnK,RowK,V> - Class in sim.portrayal.inspector
Inspector for displaying values in a JTable.
TableInspector(Collection<ColumnK>, Collection<RowK>, Class<V>, String) - Constructor for class sim.portrayal.inspector.TableInspector
Constructs a new TableInspector.
TemporalValuable - Class in sim.util
Valuable for displaying a duration between two temporal objects.
TemporalValuable(TemporalAccessor, TemporalAccessor) - Constructor for class sim.util.TemporalValuable
Constructs a new TemporalValuable representing the duration between from and to.
toAngle() - Method in class sim.util.Rotation2D
Returns the angle of this rotation in radians.
toField() - Method in class sim.field.grid.BooleanGrid2D
Converts this grid to a two-dimensional array.
toField() - Method in class sim.field.grid.LongGrid2D
Converts this grid to a two-dimensional array.
toMap() - Method in interface de.zmt.output.collectable.Collectable
 
toMultimap() - Method in interface de.zmt.output.collectable.MultiCollectable
 
toString() - Method in class de.zmt.output.collectable.AbstractCollectable
 
toString() - Method in class de.zmt.output.collectable.CategoryCollectable
 
toString() - Method in class de.zmt.output.collectable.EnumCollectable
 
toString() - Method in class de.zmt.output.collector.StrategyCollector
 
toString() - Method in class de.zmt.output.message.SimpleCollectMessage
 
toString() - Method in class de.zmt.output.Output
 
toString() - Method in class de.zmt.output.strategy.MessageCollectStrategy
 
toString() - Method in class de.zmt.params.BaseParamDefinition
 
toString() - Method in class de.zmt.params.BaseSimParamsNode
 
toString() - Method in class de.zmt.params.MapParamDefinition
 
toString() - Method in class de.zmt.util.Grid2DUtil.DoubleNeighborsResult
 
toString() - Method in class de.zmt.util.Grid2DUtil.LocationsResult
 
toString() - Method in interface sim.display.ZmtConsole.TimeBoxItem
The text that is displayed for the item in the time box.
toString() - Method in class sim.field.grid.BooleanGrid2D
 
toString() - Method in class sim.field.grid.LongGrid2D
 
toString() - Method in class sim.portrayal.inspector.CheckBoxInspector.ProvidesCheckBoxInspector
 
toString() - Method in class sim.util.distribution.PiecewiseLinear
 
toString() - Method in class sim.util.Rotation2D
 
toString() - Method in class sim.util.TemporalValuable
Complete duration representation of ISO-8601: PnYnMnDTnHnMnS.

U

unmarshal(HierarchicalStreamReader, UnmarshallingContext) - Method in class sim.util.Rotation2D.MyConverter
 
updateInspector() - Method in class sim.portrayal.inspector.CheckBoxInspector
 
updateInspector() - Method in class sim.portrayal.inspector.CombinedInspector
 
updateInspector() - Method in class sim.portrayal.inspector.TableInspector
 

V

values - Variable in class de.zmt.util.Grid2DUtil.DoubleNeighborsResult
 

W

WEST - Static variable in class sim.util.DirectionConstants
Direction pointing west: (-1,0)
WrapLayout - Class in sim.portrayal.inspector
FlowLayout subclass that fully supports wrapping of components.
WrapLayout() - Constructor for class sim.portrayal.inspector.WrapLayout
Constructs a new WrapLayout with a left alignment and a default 5-unit horizontal and vertical gap.
WrapLayout(int) - Constructor for class sim.portrayal.inspector.WrapLayout
Constructs a new FlowLayout with the specified alignment and a default 5-unit horizontal and vertical gap.
WrapLayout(int, int, int) - Constructor for class sim.portrayal.inspector.WrapLayout
Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps.
writeInterval(int) - Static method in class de.zmt.output.Output.CollectorOption
Creates a Output.CollectorOption that associates the collector to be added with a write interval.
writer(OutputWriter) - Static method in class de.zmt.output.Output.CollectorOption
Creates a Output.CollectorOption that associates the collector to be added with a custom OutputWriter.
writer(Path) - Static method in class de.zmt.output.Output.CollectorOption
Creates a Output.CollectorOption that associates the collector to be added with the default writer.
writeToXml(Object, Path) - Static method in class de.zmt.util.ParamsUtil
Data from given object is written to an XML file, using XStream instance.
writeValues(long) - Method in class de.zmt.output.writing.LineOutputWriter
 
writeValues(long) - Method in class de.zmt.output.writing.MultiLineOutputWriter
 
writeValues(long) - Method in class de.zmt.output.writing.OneShotOutputWriter
 
writeValues(long) - Method in interface de.zmt.output.writing.OutputWriter
Implementing classes need to specify how to write values.

X

xPos - Variable in class de.zmt.util.Grid2DUtil.LocationsResult
 

Y

yPos - Variable in class de.zmt.util.Grid2DUtil.LocationsResult
 

Z

ZERO - Static variable in class sim.util.Rotation2D
The identity rotation.
ZmtConsole - Class in sim.display
GUI console that can save / load parameters and add optional parameter definitions to the simulation.
ZmtConsole(GUIState) - Constructor for class sim.display.ZmtConsole
Constructs a new ZmtConsole.
ZmtConsole.InspectorSupplier - Interface in sim.display
 
ZmtConsole.TimeBoxItem - Interface in sim.display
An item that can be added to the time box at the bottom of the console window.
ZmtGUIState - Class in sim.display
A GUIState that displays the parameter of its ZmtSimState in a tabbed interface.
ZmtGUIState(ZmtSimState) - Constructor for class sim.display.ZmtGUIState
 
ZmtSimState - Class in sim.engine
SimStates which can be automated need to extend this class.
ZmtSimState(long) - Constructor for class sim.engine.ZmtSimState
 

_

_setValue(int, Object) - Method in class de.zmt.output.collectable.AbstractCollectable.MyProperties
 
A B C D E F G H I L M N O P Q R S T U V W X Y Z _ 
Skip navigation links