public class List extends java.lang.Object implements Basic
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX_BIN_CONSUMER |
static java.lang.String |
PREFIX_QUEUE |
static java.lang.String |
PREFIX_RESOURCE |
static java.lang.String |
PREFIX_STOCK_CONSUMER |
static java.lang.String |
PREFIX_STOCK_PRODUCER |
static java.lang.String |
PREFIX_WAIT_MASTER |
static java.lang.String |
PREFIX_WAIT_SLAVE |
static java.lang.String |
PRIO_FIRST |
static java.lang.String |
PRIO_LAST |
Constructor and Description |
---|
List(Model model,
java.lang.String praefix,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
addToContainer(java.lang.String entityId,
int priority,
java.lang.String priorityRule,
long time)
add entity to container
|
boolean |
addToContainerAfter(java.lang.String entityId,
int priority,
java.lang.String entityAfterId,
long time)
Add entity after a given entity
|
boolean |
addToContainerBefore(java.lang.String entityId,
int priority,
java.lang.String entityBeforeId,
long time)
Add entity before a given entity
|
boolean |
containsInContainer(java.lang.String entityId)
check if it contains a entity with entityId
|
Grafic |
createGrafic(java.lang.String viewId,
int x,
int y,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal)
create a ListGrafic instance
|
Grafic |
createGrafic(java.lang.String viewId,
int x,
int y,
java.lang.String defaultEntityTypeId,
int anzVisible,
boolean horizontal,
java.awt.Dimension deltaSize)
create a ListGrafic instance
|
java.lang.String[] |
getAllContentFromContainer()
get an array with id's of all entities in container
|
java.awt.Color |
getCommentColor() |
java.awt.Font |
getCommentFont() |
java.lang.String |
getCommentText() |
java.lang.String[][] |
getContent()
get content of list
|
Grafic |
getGrafic()
get a ListGrafic instance, created before
|
java.lang.String |
getId() |
Model |
getModel() |
java.lang.String |
getName() |
boolean |
isCommentSizeExt() |
boolean |
removeFromContainer(java.lang.String entityId,
long time)
remove entity from list
entityId
time operation-time
|
void |
setCommentColor(java.awt.Color color) |
void |
setCommentFont(int style,
int size) |
void |
setCommentSizeExt(boolean commentSizeExt) |
void |
setCommentTest(java.lang.String text) |
void |
setName(java.lang.String name)
set list-name
|
public static final java.lang.String PREFIX_QUEUE
public static final java.lang.String PREFIX_RESOURCE
public static final java.lang.String PREFIX_BIN_CONSUMER
public static final java.lang.String PREFIX_STOCK_CONSUMER
public static final java.lang.String PREFIX_STOCK_PRODUCER
public static final java.lang.String PREFIX_WAIT_MASTER
public static final java.lang.String PREFIX_WAIT_SLAVE
public static final java.lang.String PRIO_FIRST
public static final java.lang.String PRIO_LAST
public List(Model model, java.lang.String praefix, java.lang.String id)
model
- used animation.model.Modelpraefix
- id
- public java.lang.String getId()
getId
in interface ClassBasic
public void setName(java.lang.String name)
name
- public java.lang.String getCommentText()
public void setCommentTest(java.lang.String text)
public java.awt.Color getCommentColor()
public void setCommentColor(java.awt.Color color)
public java.awt.Font getCommentFont()
public void setCommentFont(int style, int size)
public boolean isCommentSizeExt()
public void setCommentSizeExt(boolean commentSizeExt)
public boolean containsInContainer(java.lang.String entityId)
entityId
- public java.lang.String[] getAllContentFromContainer()
public Grafic createGrafic(java.lang.String viewId, int x, int y, java.lang.String defaultEntityTypeId, int anzVisible, boolean horizontal)
viewId
- Id of viewx
- x-coordinate of middlepointy
- y-coordinate of middlepointdefaultEntityTypeId
- for sizinganzVisible
- nr of visible entitieshorizontal
- "horizontal" or "vertical"public Grafic createGrafic(java.lang.String viewId, int x, int y, java.lang.String defaultEntityTypeId, int anzVisible, boolean horizontal, java.awt.Dimension deltaSize)
viewId
- Id of viewx
- x-coordinate of middlepointy
- y-coordinate of middlepointdefaultEntityTypeId
- for sizinganzVisible
- nr of visible entitieshorizontal
- "horizontal" or "vertical"deltaSize
- increment/decrement size of grafic [in pixel]public Grafic getGrafic()
public boolean addToContainer(java.lang.String entityId, int priority, java.lang.String priorityRule, long time) throws ModelException
entityId
- Id of entity to insertpriority
- priority of entity to insertpriorityRule
- posible Values: List.FIRST, List.LASTtime
- simulation-time of operatingModelException
public boolean addToContainerAfter(java.lang.String entityId, int priority, java.lang.String entityAfterId, long time) throws ModelException
entityId
- Id of entity to insertpriority
- priority of new entityentityAfterId
- Id of after entitytime
- simulation time of operationModelException
public boolean addToContainerBefore(java.lang.String entityId, int priority, java.lang.String entityBeforeId, long time) throws ModelException
entityId
- Id of entity to insertpriority
- priority of new entityentityBeforeId
- Id of before entitytime
- simulation time of operationModelException
public boolean removeFromContainer(java.lang.String entityId, long time) throws ModelException
ModelException
public java.lang.String[][] getContent()