AnyLogic
Expand
Font size
All Superinterfaces:
AgentExtension, ExtEnvironmentInteractive, Serializable
All Known Subinterfaces:
ExtEnvironmentContinuous, ExtEnvironmentDiscrete

public interface ExtEnvironmentWithLayout
extends ExtEnvironmentInteractive

Field Summary

Method Summary

Modifier and TypeMethodDescription
voidapplyLayout()
Rearranges agents in this environment according to the selected layout type.
LayoutTypegetLayoutType()
Returns the layout type.
voidsetLayoutType(LayoutType type)
Sets the layout type.

Methods inherited from interface com.anylogic.engine.AgentExtension

getAgent, next_xjal, onDestroy, onExtensionRemoved, priority, setNext_xjal, supportsInterface_xjal

Method Details

setLayoutType

void setLayoutType(LayoutType type)
Sets the layout type. To apply the layout call applyLayout(). The default layout is LAYOUT_USER_DEFINED, i.e. arbitrary.
Parameters:
type - the new layout type

getLayoutType

LayoutType getLayoutType()
Returns the layout type. Note that this type has not necessarily been applied.
Returns:
the layout type

applyLayout

void applyLayout()
Rearranges agents in this environment according to the selected layout type.
See Also:
setLayoutType(LayoutType)