AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Attractor, Escalator, QueuePath, ServiceUnit

public abstract class AbstractMarkupSubunit<OWNER extends MarkupShape>
extends Object
implements Serializable
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
AbstractMarkupSubunit() 

Method Summary

Modifier and TypeMethodDescription
StringgetName()
If the markup shape is declared as field in an agent class, e.g.
OWNERgetOwner() 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

AbstractMarkupSubunit

public AbstractMarkupSubunit()

Method Details

getOwner

public OWNER getOwner()

getName

public String getName()
If the markup shape is declared as field in an agent class, e.g. if it was drawn in the graphical editor, returns the name of the field, otherwise returns the string #UNKNOWN_NAME. For replicated shapes returns the name of the field with the index of the shape in square brackets.
This method is designed to be used for debug/development purposes only. It has a very inefficient implementation
Returns:
the name of the corresponding field or #UNKNOWN_NAME