Package | Description |
---|---|
desmoj.extensions.visualization2d.engine |
Top package of 2d animation engine.
|
desmoj.extensions.visualization2d.engine.command |
Read and write animation command (cmds) files.
|
desmoj.extensions.visualization2d.engine.model |
Properties of Entities, EntityTypes, Lists, Processes, Stations and Routes... required for 2D animation.
|
desmoj.extensions.visualization2d.engine.modelGrafic |
This package contains the graphical properties of the entities in an animated model.
|
Modifier and Type | Method and Description |
---|---|
void |
TestFrame.grafikTestRun() |
void |
TestFrame.testInit() |
Constructor and Description |
---|
TestFrame() |
Modifier and Type | Method and Description |
---|---|
void |
Command.execute(Model model)
This method describes for every command-type, how it's modeled in animation.model.Model.
|
long |
CommandSequence.readInit(java.io.BufferedReader f)
Reads all commands in init-phase from reader f
and execute them (Command.execute)
|
long |
CommandSequence.readUntilTime(java.io.BufferedReader f,
long time)
Reads the next commands in reader f until time-value > time
and execute them (Command.execute)
|
Modifier and Type | Method and Description |
---|---|
void |
ProcessNew.addEntry(java.lang.String[] processEntityIds,
int resourceEntityAnz,
long time)
adds set of process- and no. of resources to process.
|
void |
ProcessNew.addEntry(java.lang.String[] processEntityIds,
java.lang.String[] resourceEntityIds,
long time)
adds set of process- and resource-entities to process.
|
boolean |
List.addToContainer(java.lang.String entityId,
int priority,
java.lang.String priorityRule,
long time)
add entity to container
|
boolean |
Route.addToContainer(java.lang.String entityId,
long time)
add entityId at sourceId on route
|
boolean |
List.addToContainerAfter(java.lang.String entityId,
int priority,
java.lang.String entityAfterId,
long time)
Add entity after a given entity
|
boolean |
List.addToContainerBefore(java.lang.String entityId,
int priority,
java.lang.String entityBeforeId,
long time)
Add entity before a given entity
|
void |
Entity.changeContainer(java.lang.String type,
java.lang.String id,
java.lang.String op,
long time)
An entity will be created, add or remove a container.
|
void |
Model.createBin(java.lang.String id,
java.lang.String[] name,
java.lang.String initialUnits,
java.lang.String point,
java.lang.String defaultEntityType,
java.lang.String anzVisible,
java.lang.String form,
java.lang.String[] deltaSize,
boolean isInit,
long time) |
void |
Model.createEntity(java.lang.String id,
java.lang.String[] name,
java.lang.String entityTypeId,
java.lang.String[] velocity,
java.lang.String state,
java.lang.String[] attribute,
java.lang.String[] position,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.createEntityTyp(java.lang.String id,
java.lang.String width,
java.lang.String height,
java.lang.String[] posStates,
java.lang.String[] posAttributes,
java.lang.String show,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
Grafic |
Statistic.createGrafic(java.lang.String viewId,
int x,
int y,
int animationType,
boolean isIntValue,
java.awt.Dimension deltaSize,
boolean infopane)
build an instance of StatisticGrafic
|
Grafic |
Bin.createGrafic(java.lang.String viewId,
int x,
int y,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal,
java.awt.Dimension deltaSize)
create a StockGrafic
|
Grafic |
Resource.createGrafic(java.lang.String viewId,
int x,
int y,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal,
java.awt.Dimension deltaSize)
create a ProcessGrafic
|
Grafic |
Stock.createGrafic(java.lang.String viewId,
int x,
int y,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal,
java.awt.Dimension deltaSize)
create a StockGrafic
|
Grafic |
WaitingQueue.createGrafic(java.lang.String viewId,
int x,
int y,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal,
java.awt.Dimension deltaSize)
create a WaitingQueueGrafic
|
Grafic |
Entity.createGraficFree(long time)
creates an EntityGrafic instance for an free entity
|
Grafic |
Entity.createGraficStatic(java.lang.String viewId,
double positionX,
double positionY,
double angle,
boolean direction,
long time)
creates an EntityGrafic instance for an static entity with fixed position
|
void |
Model.createImage(java.lang.String id,
java.lang.String datei,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.createList(java.lang.String id,
java.lang.String[] name,
java.lang.String defaultEntityType,
java.lang.String numberOfVisible,
java.lang.String form,
java.lang.String point,
java.lang.String[] deltaSize,
java.lang.String[] comment,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.createModelBasisData(java.lang.String[] projectName,
java.lang.String[] projectURL,
java.lang.String[] projectIconId,
java.lang.String modelName,
java.lang.String modelAuthor,
java.lang.String[] modelDate,
java.lang.String[] modelDescription,
java.lang.String[] modelRemark,
java.lang.String[] modelLicense,
java.lang.String[] desmojVersion,
java.lang.String[] desmojLicense,
java.lang.String[] desmojLicenseURL,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.createProcess(java.lang.String id,
java.lang.String[] name,
java.lang.String numberOfResEntity,
java.lang.String numberOfProcEntity,
java.lang.String defaultResType,
java.lang.String defaultProcType,
java.lang.String[] listId,
java.lang.String form,
java.lang.String point,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.createProcessNew(java.lang.String id,
java.lang.String[] name,
java.lang.String[] abstractProc,
java.lang.String[] resourceType,
java.lang.String[] resourceTotal,
java.lang.String[] listId,
java.lang.String point,
java.lang.String defaultEntityType,
java.lang.String anzVisible,
java.lang.String form,
java.lang.String[] showResources,
java.lang.String[] deltaSize,
java.lang.String[] comment,
boolean isInit,
long time) |
void |
Model.createResource(java.lang.String id,
java.lang.String[] name,
java.lang.String[] resourceType,
java.lang.String resourceTotal,
java.lang.String point,
java.lang.String defaultEntityType,
java.lang.String anzVisible,
java.lang.String form,
java.lang.String[] deltaSize,
boolean isInit,
long time) |
void |
Model.createRoute(java.lang.String id,
java.lang.String[] name,
java.lang.String length,
java.lang.String sourceStationId,
java.lang.String sinkStationId,
java.lang.String[] point,
java.lang.String show,
java.lang.String[] color,
java.lang.String lineSize,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.createSimulationTimeBounds(java.lang.String begin,
java.lang.String[] endArray,
java.lang.String[] timeZone,
java.lang.String defaultSpeed,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.createStation(java.lang.String id,
java.lang.String[] name,
java.lang.String point,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.createStatistic(java.lang.String id,
java.lang.String[] name,
java.lang.String typeData,
java.lang.String typeIndex,
java.lang.String[] aggregate,
java.lang.String timeBounds,
java.lang.String valueBounds,
java.lang.String histogramCells,
java.lang.String point,
java.lang.String typeAnimation,
java.lang.String[] isIntValue,
java.lang.String[] deltaSize,
boolean isInit,
long time) |
void |
Model.createStock(java.lang.String id,
java.lang.String[] name,
java.lang.String capacity,
java.lang.String initialUnits,
java.lang.String point,
java.lang.String defaultEntityType,
java.lang.String anzVisible,
java.lang.String form,
java.lang.String[] deltaSize,
boolean isInit,
long time) |
void |
Model.createWaitQueue(java.lang.String id,
java.lang.String[] name,
java.lang.String point,
java.lang.String defaultEntityType,
java.lang.String anzVisible,
java.lang.String form,
java.lang.String[] deltaSize,
boolean isInit,
long time) |
void |
Model.disposeEntity(java.lang.String id,
boolean isInit,
long time)
Dispose an entity
|
long |
Statistic.getFirstTime()
get first observation time
|
XIntervalSeries |
Statistic.getHistogram()
get histogram in jFreeChart data structure.
|
java.awt.Image |
EntityType.getImage(java.lang.String state)
get Image of state
|
long |
Statistic.getLastTime()
get last observation time
|
double |
Statistic.getLastValue()
get last stored value
|
double |
Statistic.getMax()
get max value
|
double |
Statistic.getMean()
get mean
for typeData = Statistic.DATA_Observations, all values have the same weight.
|
double |
Statistic.getMin()
get min value
|
long |
Statistic.getObservationLength()
get length of observation time
|
XYSeries |
Statistic.getObservationSerie()
get observation series in jFreeChart data structure.
|
java.lang.String |
Resource.getProcessEntry(int index)
get id of entity in position index in process
|
double |
Statistic.getStdDev()
get standard deviation
for typeData = Statistic.DATA_Observations, all values have the same weight.
|
TimeSeries |
Statistic.getTimeSerie()
get time series in jFreeChart data structure.
|
void |
Model.init_EntityTypes()
only used for testing
|
void |
Model.init_Images()
only used for testing
|
void |
Resource.provide(java.lang.String processEntityId,
int priority,
int resourceEntityAnz,
java.lang.String priorityAttribute,
long time)
put a processEntity, that require resourceEntityAnz resources, into
waiting queue
|
java.lang.String[][] |
ProcessNew.removeEntry(java.lang.String entityId,
long time)
remove an entry(process- and resource-set) that include the entity with id entityId
|
boolean |
Container.removeFromContainer(java.lang.String entityId,
long time)
remove entityId from container. ????
|
boolean |
List.removeFromContainer(java.lang.String entityId,
long time)
remove entity from list
entityId
time operation-time
|
boolean |
Route.removeFromContainer(java.lang.String entityId,
long time)
remove entityId from route
entityId
time time of operation
|
void |
Model.resetStatistic(java.lang.String id,
boolean isInit,
long time) |
void |
Model.setBin(java.lang.String id,
java.lang.String[] retrieveBegin,
java.lang.String[] retrieveEnd,
java.lang.String[] store,
boolean isInit,
long time) |
void |
Model.setEntity(java.lang.String id,
java.lang.String[] velocity,
java.lang.String[] state,
java.lang.String[] attribute,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.setList(java.lang.String id,
java.lang.String[] addEntity,
java.lang.String[] addEntityAfter,
java.lang.String[] addEntityBefore,
java.lang.String[] removeEntity,
java.lang.String[] removeAll,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Entity.setNameAttribute(java.lang.String name,
long time)
set a new key of name-attribute
This seted attribute is used as name attribute.
|
void |
Entity.setPriorityAttribute(java.lang.String p,
long time)
sets new value of priority-attribute
|
void |
Model.setProcess(java.lang.String id,
java.lang.String[] addResEntity,
java.lang.String[] removeResEntity,
java.lang.String[] addProcEntity,
java.lang.String[] removeProcEntity,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Model.setProcessNew(java.lang.String id,
java.lang.String[] addProcEntity,
java.lang.String[] addResEntity,
java.lang.String[] addResAnz,
java.lang.String[] removeEntity,
boolean isInit,
long time) |
void |
Process.setProzessEntity(int index,
java.lang.String entityId,
long time)
set entityId on position index as processed entity
|
void |
Process.setProzessEntity(java.lang.String entityId,
long time)
set entityId on next free position as processed entity
This method is normally used
|
void |
Model.setResource(java.lang.String id,
java.lang.String[] provide,
java.lang.String[] takeProcess,
java.lang.String[] takeBackProcess,
boolean isInit,
long time) |
void |
Process.setResourceEntity(int index,
java.lang.String entityId,
long time)
set entityId on position index as resource entity
|
void |
Process.setResourceEntity(java.lang.String entityId,
long time)
add resource entity on next free position
|
void |
ProcessNew.setResourceTotal(int total)
sets total of resources.
|
void |
ProcessNew.setResourceType(java.lang.String type)
sets resource type (only for information)
|
void |
Model.setRoute(java.lang.String id,
java.lang.String[] addEntity,
java.lang.String[] removeEntity,
java.lang.String[] removeAll,
java.lang.String[] show,
java.lang.String[] color,
java.lang.String[] lineSize,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
Entity.setState(java.lang.String state,
long time)
set new state-value
|
void |
Model.setStatistic(java.lang.String id,
java.lang.String value,
boolean isInit,
long time) |
void |
Model.setStock(java.lang.String id,
java.lang.String[] retrieveBegin,
java.lang.String[] retrieveEnd,
java.lang.String[] storeBegin,
java.lang.String[] storeEnd,
boolean isInit,
long time) |
void |
Entity.setVelocityAttribute(java.lang.String v,
long time)
set new value of velocity-attribute
|
void |
Model.setWaitQueue(java.lang.String id,
java.lang.String[] insertMaster,
java.lang.String[] insertSlave,
java.lang.String[] cooperationBegin,
java.lang.String[] cooperationEnd,
boolean isInit,
long time) |
void |
Resource.takeBack(java.lang.String processEntityId,
int resourceGiveBackAnz,
long time)
removes processEntity from process
|
void |
Resource.takeProcess(java.lang.String processEntityId,
long time)
move processEntity from waiting queue to process
|
void |
Process.unsetProzessEntity(int index,
java.lang.String entityId,
long time)
remove entity from position index as processed entity
|
void |
Process.unsetProzessEntity(java.lang.String entityId,
long time)
remove entityId from processed entity
This method is normally used.
|
void |
Process.unsetResourceEntity(int index,
java.lang.String entityId,
long time)
remove entity from position index as resource entity
|
void |
Process.unsetResourceEntity(java.lang.String entityId,
long time)
remove resource entity with entityId
|
void |
Statistic.update(double value,
long time)
add a new point to the time/observation series.
|
Constructor and Description |
---|
Entity(Model model,
java.lang.String id,
java.lang.String entityTypeId,
java.lang.String state,
long time)
An new entity will indexed automaticly in classContent hashtable
|
EntityType(java.lang.String id,
Model model,
int width,
int height,
Attribute[] posStates,
java.lang.String[] posAttr,
int show) |
Model(java.net.URL simulationIconDir,
CoordinatenListener coordinatenListener,
ViewerPanel viewer) |
Modifier and Type | Method and Description |
---|---|
void |
EntityGrafic.setImage() |
void |
BinGrafic.update()
update of ResourceGrafic content.
|
void |
ResourceGrafic.update()
update of ResourceGrafic content.
|
void |
StatisticGrafic.update()
updates the StatisticGrafic Instance.
|
void |
StockGrafic.update()
update of ResourceGrafic content.
|
void |
WaitingQueueGrafic.update()
update of ResourceGrafic content.
|
Constructor and Description |
---|
BinGrafic(Bin bin,
java.lang.String viewId,
java.awt.Point pointExtern,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal,
java.awt.Dimension deltaSize)
Constructor
|
EntityGrafic(Entity entity) |
EntityGrafic(Entity entity,
java.lang.String viewId,
EntityPosition positionExtern) |
ResourceGrafic(Resource resource,
java.lang.String viewId,
java.awt.Point pointExtern,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal,
java.awt.Dimension deltaSize)
Constructor
|
StatisticGrafic(Statistic statistic,
java.lang.String viewId,
java.awt.Point pointExtern,
int typeAnimation,
boolean isIntValue,
java.awt.Dimension deltaSize,
boolean infopane)
Build a StatisticGrafic Instance
|
StockGrafic(Stock stock,
java.lang.String viewId,
java.awt.Point pointExtern,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal,
java.awt.Dimension deltaSize)
Constructor
|
WaitingQueueGrafic(WaitingQueue waitingQueue,
java.lang.String viewId,
java.awt.Point pointExtern,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal,
java.awt.Dimension deltaSize) |