public class Process extends java.lang.Object implements Basic
Constructor and Description |
---|
Process(Model model,
java.lang.String id,
int anz_ResourceEntities,
int anz_ProcessEntities,
java.lang.String listId) |
Modifier and Type | Method and Description |
---|---|
Grafic |
createGrafic(java.lang.String viewId,
int x,
int y,
java.lang.String defaultEntityTypeId)
create a ProcessGrafic
|
Grafic |
getGrafic()
get ProcessGrafic, created before
|
java.lang.String |
getId()
get id of process-station
|
java.lang.String |
getListId()
get id of list, where are the processed entities are before
this may be null
|
Model |
getModel() |
java.lang.String |
getName()
get name of process-station
|
java.lang.String[] |
getProcessEntity()
get array with id's of all processed entities
|
java.lang.String[] |
getResourceEntity()
get array with id's of all resource-entities
|
void |
printEntries()
makes a control-print on System.out
|
void |
setName(java.lang.String name)
set name of process-station
|
void |
setProzessEntity(int index,
java.lang.String entityId,
long time)
set entityId on position index as processed entity
|
void |
setProzessEntity(java.lang.String entityId,
long time)
set entityId on next free position as processed entity
This method is normally used
|
void |
setResourceEntity(int index,
java.lang.String entityId,
long time)
set entityId on position index as resource entity
|
void |
setResourceEntity(java.lang.String entityId,
long time)
add resource entity on next free position
|
void |
unsetProzessEntity(int index,
java.lang.String entityId,
long time)
remove entity from position index as processed entity
|
void |
unsetProzessEntity(java.lang.String entityId,
long time)
remove entityId from processed entity
This method is normally used.
|
void |
unsetResourceEntity(int index,
java.lang.String entityId,
long time)
remove entity from position index as resource entity
|
void |
unsetResourceEntity(java.lang.String entityId,
long time)
remove resource entity with entityId
|
public Process(Model model, java.lang.String id, int anz_ResourceEntities, int anz_ProcessEntities, java.lang.String listId)
model
- used animation.model.Modelid
- processIdanz_ResourceEntities
- max possible resource-entities in one timeanz_ProcessEntities
- max possible processed-entities in one timelistId
- optional id of a list, which include all processed entities beforepublic java.lang.String getId()
getId
in interface ClassBasic
public void setName(java.lang.String name)
name
- public java.lang.String getName()
public java.lang.String getListId()
public java.lang.String[] getProcessEntity()
public void setProzessEntity(int index, java.lang.String entityId, long time) throws ModelException
index
- 0 <= index < anz_ProcessEntitiesentityId
- time
- time of operatingModelException
public void unsetProzessEntity(int index, java.lang.String entityId, long time) throws ModelException
index
- 0 <= index < anz_ProcessEntitiesentityId
- time
- time of operatingModelException
public void setProzessEntity(java.lang.String entityId, long time) throws ModelException
entityId
- time
- time of operationModelException
public void unsetProzessEntity(java.lang.String entityId, long time) throws ModelException
entityId
- time
- ModelException
public java.lang.String[] getResourceEntity()
public void setResourceEntity(int index, java.lang.String entityId, long time) throws ModelException
index
- 0 <= index < anz_ResourceEntitiesentityId
- time
- time of operationModelException
public void unsetResourceEntity(int index, java.lang.String entityId, long time) throws ModelException
index
- 0 <= index < anz_ResourceEntitiesentityId
- time
- time of operationModelException
public void setResourceEntity(java.lang.String entityId, long time) throws ModelException
entityId
- time
- time of operationModelException
public void unsetResourceEntity(java.lang.String entityId, long time) throws ModelException
entityId
- time
- time of operationModelException
public void printEntries()
public Grafic createGrafic(java.lang.String viewId, int x, int y, java.lang.String defaultEntityTypeId)
viewId
- Id of viewx
- middlepoint x-coordinatey
- middlepoint y-coordinatedefaultEntityTypeId
- for sizing