AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractDrawableMarkupAggregator, AbstractNetwork

@AnyLogicInternalAPI
public abstract class AbstractMarkupAggregator<T>
extends Object
implements Serializable
See Also:
Serialized Form

Method Summary

Modifier and TypeMethodDescription
abstract Stream<? extends AggregatableAnimationElement>elementsInternal()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
final RuntimeExceptionerror(String errorText)
Signals an error during the model run by throwing a RuntimeException with errorText preceded by the agent full name.
StringgetName() 
TgetOwner() 
final voidinitializeInternal()
Initialization of markup aggregator (e.g.
booleanisVisible()
Returns the visibility of the markup container.
voidonAggregatorVisibilityChanged()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
voidsetVisible(boolean v)
Sets the visibility of all the markup container.

Methods inherited from class java.lang.Object

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

Method Details

initializeInternal

@AnyLogicInternalAPI
public final void initializeInternal()
Initialization of markup aggregator (e.g. network). It can't be modified since this method has been called.

error

public final RuntimeException error(String errorText)
Signals an error during the model run by throwing a RuntimeException with errorText preceded by the agent full name.
Parameters:
errorText - the text describing the error that will be displayed.
Returns:
actually this method never returns, it throws runtime exception by itself.
But the return type is defined for some cases when you would like to use the following form of call: throw error("my message");

getOwner

public T getOwner()

getName

public String getName()

setVisible

public void setVisible(boolean v)
Sets the visibility of all the markup container.
Parameters:
v - visibility: true - visible (some markup elements may be invisible according to their individual settings), false - not

elementsInternal

@AnyLogicInternalAPI
public abstract Stream<? extends AggregatableAnimationElement> elementsInternal()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

onAggregatorVisibilityChanged

@AnyLogicInternalAPI
public void onAggregatorVisibilityChanged()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

isVisible

public boolean isVisible()
Returns the visibility of the markup container.
Returns:
visibility: true - visible (some markup elements may be invisible according to their individual settings), false - not