com.xj.anylogic.engine
Class EnvironmentContinuous<T extends AgentContinuous>

java.lang.Object
  extended by com.xj.anylogic.engine.Environment<T>
      extended by com.xj.anylogic.engine.EnvironmentContinuous<T>
All Implemented Interfaces:
com.xj.anylogic.engine.internal.Child, java.io.Serializable
Direct Known Subclasses:
EnvironmentContinuous2D, EnvironmentContinuous3D, EnvironmentContinuousGIS

public abstract class EnvironmentContinuous<T extends AgentContinuous>
extends Environment<T>

Base class for agent environments with continuous space. Use one of these subclasses:

Author:
XJ Technologies Company Ltd. www.anylogic.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.xj.anylogic.engine.Environment
Environment.AgentCollection<T extends Agent>
 
Field Summary
 
Fields inherited from class com.xj.anylogic.engine.Environment
LAYOUT_ARRANGED, LAYOUT_RANDOM, LAYOUT_RING, LAYOUT_SPRING_MASS, LAYOUT_USER_DEFINED, NETWORK_ALL_IN_RANGE, NETWORK_RANDOM, NETWORK_RING_LATTICE, NETWORK_SCALE_FREE, NETWORK_SMALL_WORLD, NETWORK_USER_DEFINED, SPACE_CONTINUOUS_2D, SPACE_DISCRETE_2D, TIME_CONTINUOUS, TIME_DISCRETE
 
Method Summary
 double getConnectionRange()
          Returns the range of agent connections.
 int getSpaceType()
          Deprecated. 
 void setNetworkAllInRange(double connectionRange)
          Sets network type to the one when agents are connected if the distance between them is not longer that a given one.
 
Methods inherited from class com.xj.anylogic.engine.Environment
applyNetwork, areStepsEnabled, deliverToAll, deliverToRandom, disableSteps, enableSteps, formatSpaceType, getAgentCollection, getConnectionsPerAgent, getHeight, getNeighborLinkProbability, getNetworkType, getRandomAgent, getScaleFreeM, getWidth, layoutTypeToString, onAfterStep, onBeforeStep, onDestroy, restoreOwner, setNetworkRandom, setNetworkRingLattice, setNetworkScaleFree, setNetworkSmallWorld, setNetworkUserDefined, size, spaceTypeToString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSpaceType

@Deprecated
public int getSpaceType()
Deprecated. 

Description copied from class: Environment
Returns the space type, e.g. Environment.SPACE_DISCRETE_2D
(In case of GIS-based environment, always returns Environment.SPACE_CONTINUOUS_2D)

Specified by:
getSpaceType in class Environment<T extends AgentContinuous>
Returns:
the space type

setNetworkAllInRange

public void setNetworkAllInRange(double connectionRange)
Sets network type to the one when agents are connected if the distance between them is not longer that a given one. This network type is only possible in continuous space. Call applyNetwork() to actually create network connections.

Parameters:
connectionRange - the maximum distance between connected agents
In case of GIS space, measured in meters

getConnectionRange

public double getConnectionRange()
Returns the range of agent connections. Applies to "all in range" network.
In case of GIS space, it is measured in meters

Returns:
the range of agent connections


Copyright © 1991-2008 XJ Technlogies. All Rights Reserved.