AnyLogic
Expand
Font size
All Superinterfaces:
AgentExtension, ExtEnvironmentInteractive, ExtEnvironmentWithLayout, ExtEnvironmentWithMetrics, ExtWithSpaceType, Serializable

public interface ExtEnvironmentContinuous
extends ExtEnvironmentInteractive, ExtEnvironmentWithMetrics, ExtEnvironmentWithLayout, ExtWithSpaceType
Agent environment extension for continuous (3D) space
Author:
AnyLogic North America, LLC https://anylogic.com

Field Summary

Method Summary

Modifier and TypeMethodDescription
PointrandomPointOfSpace()
Returns the random location inside within the space bounds of this environment
voidsetupSpace(double width, double height)
Sets the space to the given dimensions.
voidsetupSpace(double width, double height, double zHeight)
Sets the space to the given dimensions.
doublespaceHeight()
Returns the height of environment space.
doublespaceWidth()
Returns the width of environment space.
doublespaceZHeight()
Returns the height of environment space along Z-axis.

Methods inherited from interface com.anylogic.engine.AgentExtension

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

Methods inherited from interface com.anylogic.engine.ExtEnvironmentWithLayout

applyLayout, getLayoutType, setLayoutType

Methods inherited from interface com.anylogic.engine.ExtEnvironmentWithMetrics

connectAllInRange_xjal, getNetworkConnectionRange, setNetworkAllInRange

Method Details

setupSpace

void setupSpace(double width,
 double height)
Sets the space to the given dimensions. The dimension are used only when various layouts are applied and do not restrict the location or movement of the agents.
This method should only be called when the environment is empty.
Parameters:
width - the width of the space
height - the height of the space

setupSpace

void setupSpace(double width,
 double height,
 double zHeight)
Sets the space to the given dimensions. The dimension are used only when various layouts are applied and do not restrict the location or movement of the agents.
This method should only be called when the environment is empty.
Parameters:
width - the width of the space
height - the height of the space
zHeight - the height of the space along Z-axis

spaceWidth

double spaceWidth()
Returns the width of environment space.
Returns:
the width of environment space

spaceHeight

double spaceHeight()
Returns the height of environment space.
Returns:
the height of environment space

spaceZHeight

double spaceZHeight()
Returns the height of environment space along Z-axis.
Returns:
the z-height of environment space

randomPointOfSpace

Point randomPointOfSpace()
Returns the random location inside within the space bounds of this environment
Returns:
the random location inside within the space bounds of this environment