public class Model
extends java.lang.Object
Constructor and Description |
---|
Model(java.net.URL simulationIconDir,
CoordinatenListener coordinatenListener,
ViewerPanel viewer) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsImageId(java.lang.String id) |
void |
createBackgroundElement(java.lang.String id,
java.lang.String[] name,
java.lang.String[] text,
java.lang.String[] topLeft,
java.lang.String[] bottomRight,
java.lang.String[] middle,
java.lang.String[] size,
java.lang.String[] foreground,
java.lang.String[] background,
java.lang.String level,
java.lang.String[] imageId,
boolean isInit,
long time) |
void |
createBackgroundLine(java.lang.String id,
java.lang.String[] lineSize,
java.lang.String[] color,
java.lang.String startPoint,
java.lang.String[] addPoint,
java.lang.String level,
boolean isInit,
long time) |
void |
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 |
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 |
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()
|
void |
createImage(java.lang.String id,
java.lang.String datei,
boolean isInit,
long time)
used for model-creation by animation.command.Command.execute()
|
void |
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 |
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()
|
ModelGrafic |
createModelGrafic()
create the assoziated ModelGrafic instance.
|
void |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
disposeEntity(java.lang.String id,
boolean isInit,
long time)
Dispose an entity
|
ClassContent<BackgroundElement> |
getBackgroundElements() |
ClassContent<BackgroundLine> |
getBackgroundLines() |
ClassContent<Bin> |
getBins() |
CoordinatenListener |
getCoordinatenListener() |
java.lang.String |
getDesmojLicense() |
java.lang.String |
getDesmojLicenseURL() |
java.lang.String |
getDesmojVersion() |
ClassContent<Entity> |
getEntities() |
ClassContent<EntityType> |
getEntityTyps() |
java.awt.Image |
getImage(java.lang.String id) |
java.lang.String[] |
getImageIDs() |
ClassContent<List> |
getLists() |
java.lang.String |
getModelAuthor() |
java.lang.String |
getModelCreatedAt() |
java.lang.String |
getModelDescription() |
ModelGrafic |
getModelGrafic()
get associated ModelGrafic instance, when it's created before.
|
java.lang.String |
getModelLicence() |
java.lang.String |
getModelName() |
java.lang.String |
getModelProjectIconId() |
java.lang.String |
getModelProjectName() |
java.lang.String |
getModelProjectURL() |
java.lang.String |
getModelRemark() |
ClassContent<Process> |
getProcesses() |
ClassContent<ProcessNew> |
getProcessNewes() |
ClassContent<Resource> |
getResources() |
ClassContent<Route> |
getRoutes() |
long |
getSimulationBegin() |
long |
getSimulationEnd()
End of SimulationTime.
|
double |
getSimulationSpeed() |
SimulationTime |
getSimulationTime() |
ClassContent<Station> |
getStations() |
ClassContent<Statistic> |
getStatistics() |
ClassContent<Stock> |
getStocks() |
java.util.TimeZone |
getTimeZone() |
ViewerPanel |
getViewer() |
ClassContent<WaitingQueue> |
getWaitingQueues() |
void |
init_EntityTypes()
only used for testing
|
void |
init_Images()
only used for testing
|
boolean |
isValid() |
void |
reset()
makes a model-reset, must be used before a new cmds-file is read.
|
void |
resetStatistic(java.lang.String id,
boolean isInit,
long time) |
void |
setBackgroundElement(java.lang.String id,
java.lang.String[] name,
java.lang.String[] text,
java.lang.String[] foreground,
java.lang.String[] background,
java.lang.String[] imageId,
boolean isInit,
long time) |
void |
setBin(java.lang.String id,
java.lang.String[] retrieveBegin,
java.lang.String[] retrieveEnd,
java.lang.String[] store,
boolean isInit,
long time) |
void |
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 |
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 |
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 |
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 |
setResource(java.lang.String id,
java.lang.String[] provide,
java.lang.String[] takeProcess,
java.lang.String[] takeBackProcess,
boolean isInit,
long time) |
void |
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 |
setRunPhase(boolean run)
set Model to run-phase, otherwise its init-phase
|
void |
setSimulationIconDir(java.net.URL iconDir) |
void |
setSimulationTime(SimulationTime simulationTime) |
void |
setStatistic(java.lang.String id,
java.lang.String value,
boolean isInit,
long time) |
void |
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 |
setValid(boolean valid)
sets a Model to valid or not.
|
void |
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) |
public Model(java.net.URL simulationIconDir, CoordinatenListener coordinatenListener, ViewerPanel viewer) throws ModelException
simulationIconDir
- may be nullcoordinatenListener
- may be nullModelException
public ViewerPanel getViewer()
public void reset()
public ModelGrafic createModelGrafic() throws ModelGraficException
ModelGraficException
public ModelGrafic getModelGrafic() throws ModelGraficException
ModelGraficException
public void setSimulationIconDir(java.net.URL iconDir)
public void setSimulationTime(SimulationTime simulationTime)
public SimulationTime getSimulationTime()
public void setRunPhase(boolean run)
run
- public void setValid(boolean valid)
valid
- public boolean isValid()
public CoordinatenListener getCoordinatenListener()
public ClassContent<BackgroundElement> getBackgroundElements()
public ClassContent<BackgroundLine> getBackgroundLines()
public ClassContent<Bin> getBins()
public ClassContent<Entity> getEntities()
public ClassContent<EntityType> getEntityTyps()
public ClassContent<List> getLists()
public ClassContent<Process> getProcesses()
public ClassContent<ProcessNew> getProcessNewes()
public ClassContent<Resource> getResources()
public ClassContent<Route> getRoutes()
public ClassContent<Station> getStations()
public ClassContent<Statistic> getStatistics()
public ClassContent<Stock> getStocks()
public ClassContent<WaitingQueue> getWaitingQueues()
public void 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) throws ModelException
ModelException
public void createSimulationTimeBounds(java.lang.String begin, java.lang.String[] endArray, java.lang.String[] timeZone, java.lang.String defaultSpeed, boolean isInit, long time) throws ModelException
begin
- end
- defaultSpeed
- ModelException
public void createImage(java.lang.String id, java.lang.String datei, boolean isInit, long time) throws ModelException
id
- datei
- ModelException
public void 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) throws ModelException
id
- width
- height
- posStates
- posAttributes
- ModelException
public void createBackgroundElement(java.lang.String id, java.lang.String[] name, java.lang.String[] text, java.lang.String[] topLeft, java.lang.String[] bottomRight, java.lang.String[] middle, java.lang.String[] size, java.lang.String[] foreground, java.lang.String[] background, java.lang.String level, java.lang.String[] imageId, boolean isInit, long time)
public void setBackgroundElement(java.lang.String id, java.lang.String[] name, java.lang.String[] text, java.lang.String[] foreground, java.lang.String[] background, java.lang.String[] imageId, boolean isInit, long time)
public void createBackgroundLine(java.lang.String id, java.lang.String[] lineSize, java.lang.String[] color, java.lang.String startPoint, java.lang.String[] addPoint, java.lang.String level, boolean isInit, long time)
public void 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) throws ModelException
id
- name
- entityTypeId
- velocity
- state
- attribute
- position
- ModelException
public void setEntity(java.lang.String id, java.lang.String[] velocity, java.lang.String[] state, java.lang.String[] attribute, boolean isInit, long time) throws ModelException
id
- velocity
- state
- attribute
- ModelException
public void disposeEntity(java.lang.String id, boolean isInit, long time) throws ModelException
id
- isInit
- time
- ModelException
public void 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) throws ModelException
id
- name
- defaultEntityType
- numberOfVisible
- form
- point
- deltaSize
- ModelException
public void 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) throws ModelException
id
- addEntity
- addBetween
- removeEntity
- removeAll
- setRank
- isInit
- time
- ModelException
public void createStation(java.lang.String id, java.lang.String[] name, java.lang.String point, boolean isInit, long time) throws ModelException
id
- name
- point
- ModelException
public void 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) throws ModelException
id
- name
- length
- sourceStationId
- sinkStationId
- point
- show
- color
- lineSize
- isInit
- time
- ModelException
public void 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) throws ModelException
id
- addEntity
- removeEntity
- removeAll
- ModelException
public void 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) throws ModelException
id
- name
- numberOfResEntity
- numberOfProcEntity
- defaultResType
- defaultProcType
- listId
- form
- point
- ModelException
public void 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) throws ModelException
id
- addResEntity
- removeResEntity
- addProcEntity
- removeProcEntity
- ModelException
public void 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) throws ModelException
ModelException
public void 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) throws ModelException
ModelException
public void 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) throws ModelException
ModelException
public void setResource(java.lang.String id, java.lang.String[] provide, java.lang.String[] takeProcess, java.lang.String[] takeBackProcess, boolean isInit, long time) throws ModelException
ModelException
public void 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) throws ModelException
ModelException
public void 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) throws ModelException
ModelException
public void 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) throws ModelException
ModelException
public void setBin(java.lang.String id, java.lang.String[] retrieveBegin, java.lang.String[] retrieveEnd, java.lang.String[] store, boolean isInit, long time) throws ModelException
ModelException
public void 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) throws ModelException
ModelException
public void 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) throws ModelException
ModelException
public void 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) throws ModelException
ModelException
public void setStatistic(java.lang.String id, java.lang.String value, boolean isInit, long time) throws ModelException
ModelException
public void resetStatistic(java.lang.String id, boolean isInit, long time) throws ModelException
ModelException
public java.lang.String getModelName()
public java.lang.String getModelAuthor()
public java.lang.String getModelDescription()
public java.lang.String getModelCreatedAt()
public java.lang.String getModelLicence()
public java.lang.String getModelRemark()
public java.lang.String getModelProjectName()
public java.lang.String getModelProjectURL()
public java.lang.String getModelProjectIconId()
public java.lang.String getDesmojLicense()
public java.lang.String getDesmojLicenseURL()
public java.lang.String getDesmojVersion()
public long getSimulationBegin()
public long getSimulationEnd()
public java.util.TimeZone getTimeZone()
public double getSimulationSpeed()
public java.awt.Image getImage(java.lang.String id)
public java.lang.String[] getImageIDs()
public boolean containsImageId(java.lang.String id)
public void init_EntityTypes() throws ModelException
ModelException
public void init_Images() throws ModelException
ModelException