The continuous space support includes ability to set and retrieve the current agent location, to move the agent with the specified speed from one location to another, to execute action upon arrival, to animate the (static or moving) agent at its location, to establish connections based on agents layout, and other useful services. Part of continuous space functionality does not even require the agents to belong to an explicitly specified environment - without the environment the default space type assumed is continuous space.
To set the
environment space type to continuous
The space dimensions specified in the same section (Width and Height) are only used to lay out agents when any of the standard layout types are applied and do not restrict the agents mobility.
You can use the following methods to get the space dimensions:
spaceHeight() - Returns the
height of environment in continuous
double spaceWidth() - Returns the width of environment in continuous space.
double spaceZHeight() - Returns the height of environment space along Z-axis.
Location of an agent in continuous space is defined by real coordinates.
Please refer here to know how to define initial locations for agents living in continuous space.
While the agent is moving, its presentation will also be animated as moving and will always be at its current position (x,y) relative to its origin. This means that if in design time the agent's presentation was placed at (50,100) on the container (e.g. Main diagram) and the current location of the agent is (17,64), the agent will be shown at (67,164). The rotation of the agent's presentation is always set to its heading. Note that if you have several embedded objects representing agents living in the same space, you need to place their (embedded) presentations at the same location on the container diagram to get a consistent picture.
Continuous space movement functions