• Documentation
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API

    Show / Hide Table of Contents
    • Mars.Components
      • DependencyRegistrationModelling
    • Mars.Components.Agents
      • AbstractAgent
      • AbstractEntity
      • Agent
    • Mars.Components.Environments
      • AbstractEnvironment
      • AbstractGraphElement
      • AlwaysPassingNodeGuard
      • EntityLane<TEntity>
      • GeoEnvironment
      • GeoHashEnvironment<T>
      • IEnvironmentMediator
      • IModalChoiceResolver
      • PathHeuristics
      • SpatialEdge
      • SpatialGraphEntityExtensions
      • SpatialGraphEnvironment
      • SpatialGraphHelper
      • SpatialHashEnvironment<TEntity>
      • SpatialNode
      • WorldIndexExtensions
    • Mars.Components.Environments.Cartesian
      • CartesianEnvironment<TEntity>
      • CollisionEnvironment<TCharacter, TObstacle>
      • CollisionKind
      • ConeExplorationView
      • ExplorationView
      • GeometryFactory
      • ICartesianEnvironment<TEntity>
      • ICharacter
      • ICollidable
      • ICollisionEnvironment<TCharacter, TObstacle>
      • IObstacle
      • IVisible
      • RayExplorationView
      • TrapezoidExploration
      • VisibilityKind
    • Mars.Components.Environments.Cartesian.Routing
      • CartesianRoutingService<TObstacle>
      • GeometryCoordinatesRoutingPointsGenerator
      • HomogenousRoutingPointsGenerator
      • IRoutingPointsGenerator
      • RandomRoutingPointsGenerator
      • SectionalRandomRoutingPointsGenerator
    • Mars.Components.Layers
      • AbstractActiveLayer
      • AbstractEnvelopedLayer
      • AbstractLayer
      • AbstractVectorFeature
      • AgentSchedulerLayer<TAgent, TLayer>
      • QuerySourceLoader
      • RasterLayer
      • SchedulerEntry
      • SchedulerLayer
      • VectorFeature
      • VectorLayer
      • VectorLayer<T>
      • VectorLayerHelper
    • Mars.Components.Layers.Temporal
      • IQueryFieldProvider
      • ITemporalObjectCatalog
      • ITemporalObjectIterator
      • TemporalCatalogFeature<TKey>
      • TemporalFeatureKind
      • TemporalMetadataLoader
    • Mars.Components.Services
      • AgentManager
    • Mars.Components.Services.Explorations
      • BoltzmannExploration
      • EpsilonGreedyExploration
      • IExplorationPolicy
      • RouletteWheelExploration
      • TabuSearchExploration
    • Mars.Components.Services.Learning
      • InfiniteQLearning
      • QLearning
      • Sarsa
    • Mars.Components.Services.Planning
      • ActionPlanResult
      • GoapAction
      • GoapAgentStates
      • GoapGoal
      • GoapPlanner
      • GoapStateKey<T>
      • GoapStateProperty
      • GoapStateProperty<TElement>
      • IGoapAction
      • IGoapAgentStates
      • IGoapGoal
      • IGoapPlanner
      • IGoapStateKey
      • StatesCommons
    • Mars.Components.Services.Planning.ActionCommons
      • AllGoalsSatisfiedAction
      • NoGoalReachableAction
    • Mars.Components.Starter
      • Command
      • CommandArgumentContainer
      • CommandParser
      • CommandSet
      • HelpCommand
      • Option
      • OptionContext
      • OptionException
      • OptionSet
      • OptionValueCollection
      • OptionValueType
      • SimulationStarter
    • Mars.Components.Starter.Exceptions
      • SimulationStartupException
    • Mars.Interfaces
      • IModelObject
      • ISimulationContainer
      • ISimulationContext
      • ISimulationModule
      • ISimulationState
      • IStepExecutionContext
      • SimulationContext
      • SimulationContext.WorkflowStateType
    • Mars.Interfaces.Agents
      • IAgent
      • IAgent<TLayer>
      • IEntity
      • IMarsDslAgent
      • IModalCapabilitiesAgent
      • ISpatialGraphEntity
      • ITickClient
    • Mars.Interfaces.Annotations
      • ActiveConstructor
      • PropertyDescription
    • Mars.Interfaces.Data
      • AbstractDomainData
      • GeometryData
      • IDomainData
      • IGeometryData
      • IIdentifiableData
      • IMarsFeature
      • IRasterBandData
      • ISource
      • IStringData
      • IStringStructuredData
      • IStructuredData
      • IStructuredDataGeometry
      • IValueData
      • LayerInitData
      • RasterBandData
      • StringDataDto
      • StructuredData
      • VectorStructuredData
    • Mars.Interfaces.Environments
      • BoundingBox
      • DirectionType
      • EdgeExploreResult
      • EdgeStop
      • ExploreDirection
      • GeoPositionExtension
      • HighwayType
      • IEdge<TEdge, TNode>
      • IEntityLane<TEntity>
      • IEnvironment
      • IEnvironment<TEntity>
      • IGeoGridEnvironment<T>
      • IGraphEntity
      • IGraphEnvironment<TEdge, TNode>
      • INode<TEdge, TNode>
      • INodeGuard
      • IPositionable
      • IRoutePlanner
      • ISpatialEdge
      • ISpatialGraphEnvironment
      • ISpatialLane
      • ISpatialNode
      • LaneExploreResult
      • ModalChoice
      • MultimodalRoute
      • NodeIntegrationKind
      • Position
      • Route
      • RouteStop
      • Size
      • SpatialGraphExploreResult
      • SpatialModalityType
      • TrafficLightPhase
    • Mars.Interfaces.Layers
      • FinallySimulationStep
      • IChangingLayer
      • IDataContainer
      • IDataLayer
      • IDataSet
      • IEnvelopDataLayer
      • ILayer
      • IMarsDslLayer
      • IModalChoiceConsumer
      • InitSimulationStep
      • INotifyChangedSource<T>
      • IRaster<TValue>
      • IRasterLayer
      • ISteppedActiveLayer
      • IVectorFeature
      • IVectorLayer
      • IVectorLayer<T>
      • IVectorNode<TEntity>
      • RegisterAgent
      • UnregisterAgent
    • Mars.Interfaces.Model
      • ActiveTypeMapping
      • AgentMapping
      • AgentType
      • ConstructorType
      • ContainsOperator
      • DataContainer
      • DataType
      • EntityMapping
      • EntityType
      • Execution
      • FeatureType
      • Globals
      • IdentifiableElement
      • IndividualMapping
      • Input
      • InputConfiguration
      • LayerMapping
      • LayerType
      • ModelDescription
      • ModelElement
      • ObjectType
      • Output
      • OutputConfiguration
      • OutputFilter
      • OutputKind
      • OutputTargetType
      • ParameterMapping
      • Processing
      • ProcessingConfiguration
      • ProcessingTargetType
      • PropertyType
      • SimulationConfig
      • TimeSpanUnit
      • TimeSpanUnitExtensions
      • TypeElement
      • TypeMapping
    • Mars.Interfaces.Model.Converters
      • CultureConverter
      • SerializationTypeConverter
      • TimeSpanUnitConverter
    • Mars.Interfaces.Model.Exceptions
      • InvalidTypeException
      • MissingTypeException
    • Mars.Interfaces.Model.Options
      • AbstractEndpointOptions
      • AbstractFileOptions
      • AbstractOptions
      • AscOptions
      • CsvOptions
      • GeoJsonOptions
      • MongoOptions
      • MqttOptions
      • PostgresSqlOptions
      • RedisOptions
      • RelationalEndpointOptions
      • SerializationType
      • SocketOutputOptions
      • SpatialGraphOptions
      • SqLiteOptions
      • TripsOptions

    Class AgentManager

    Contains methods to create IEntity instances from a given input and agent type
    Inheritance
    System.Object
    AgentManager
    Namespace: Mars.Components.Services
    Assembly: Mars.Components.dll
    Syntax
    public static class AgentManager : object

    Methods

    CreateAgents<T>(AgentMapping, RegisterAgent, UnregisterAgent, List<ILayer>, List<IEnvironment>, Int32)

    Creates a set of agent with unique identifier according to the inputConfiguration and optional input data within a AgentMapping
    Declaration
    public static IDictionary<Guid, T> CreateAgents<T>(AgentMapping agentInitConfig, RegisterAgent registerAgentHandle, UnregisterAgent unregisterAgentHandle, List<ILayer> layerDependencies = null, List<IEnvironment> environments = null, int reducedCount = null)
        where T : IEntity
    Parameters
    Type Name Description
    AgentMapping agentInitConfig Configuration for agent creation, contains the reference to the input data
    RegisterAgent registerAgentHandle Handle to register the agent entity within the execution system
    UnregisterAgent unregisterAgentHandle Handle to unregister the agent entity and remove it from the execution system
    List<ILayer> layerDependencies Optional layer dependencies of the agent type
    List<IEnvironment> environments Optional environment dependencies for spatial operation e.g. movement and exploration
    System.Int32 reducedCount Optional specified amount of agent instances to create according to the available data within the AgentMapping
    Returns
    Type Description
    IDictionary<Guid, T> A unique identifiable agent entities
    Type Parameters
    Name Description
    T The type from which instances shall be created
    Exceptions
    Type Condition
    AgentInitializationException No available constructor of or missing input data for creation

    GetAgentsByAgentInitConfig<T>(AgentMapping, RegisterAgent, UnregisterAgent, List<ILayer>, IEnvironment, Int32)

    Declaration
    public static ConcurrentDictionary<Guid, T> GetAgentsByAgentInitConfig<T>(AgentMapping agentInitConfig, RegisterAgent registerAgentHandle, UnregisterAgent unregisterAgentHandle, List<ILayer> layerDependencies = null, IEnvironment environment = null, int reducedCount = null)
        where T : IEntity
    Parameters
    Type Name Description
    AgentMapping agentInitConfig
    RegisterAgent registerAgentHandle
    UnregisterAgent unregisterAgentHandle
    List<ILayer> layerDependencies
    IEnvironment environment
    System.Int32 reducedCount
    Returns
    Type Description
    ConcurrentDictionary<Guid, T>
    Type Parameters
    Name Description
    T

    SpawnAgents(AgentMapping, RegisterAgent, UnregisterAgent, List<ILayer>, List<IEnvironment>, Int32)

    Creates and register the agent set of the specified type within the AgentMapping type with the layer type out of the type description
    Declaration
    public static IDictionary<Guid, IAgent> SpawnAgents(AgentMapping agentInitConfig, RegisterAgent registerAgentHandle, UnregisterAgent unregisterAgentHandle, List<ILayer> layerDependencies = null, List<IEnvironment> environments = null, int reducedCount = null)
    Parameters
    Type Name Description
    AgentMapping agentInitConfig Configuration for agent creation, contains the reference to the input data
    RegisterAgent registerAgentHandle Handle to register the agent entity within the execution system
    UnregisterAgent unregisterAgentHandle Handle to unregister the agent entity and remove it from the execution system
    List<ILayer> layerDependencies Optional layer dependencies of the agent type
    List<IEnvironment> environments Optional environment dependencies for spatial operation e.g. movement and exploration
    System.Int32 reducedCount Optional specified amount of agent instances to create according to the available data within the AgentMapping
    Returns
    Type Description
    IDictionary<Guid, IAgent> A unique identifiable agent entities
    Exceptions
    Type Condition
    AgentInitializationException No available constructor of IAgent or missing input data for creation

    SpawnAgents<T>(AgentMapping, RegisterAgent, UnregisterAgent, List<ILayer>, List<IEnvironment>, Int32)

    Creates and register the agent set of the specified type with the layer type out of the type description
    Declaration
    public static IDictionary<Guid, T> SpawnAgents<T>(AgentMapping agentInitConfig, RegisterAgent registerAgentHandle, UnregisterAgent unregisterAgentHandle, List<ILayer> layerDependencies = null, List<IEnvironment> environments = null, int reducedCount = null)
        where T : IAgent
    Parameters
    Type Name Description
    AgentMapping agentInitConfig Configuration for agent creation, contains the reference to the input data
    RegisterAgent registerAgentHandle Handle to register the agent entity within the execution system
    UnregisterAgent unregisterAgentHandle Handle to unregister the agent entity and remove it from the execution system
    List<ILayer> layerDependencies Optional layer dependencies of the agent type
    List<IEnvironment> environments Optional environment dependencies for spatial operation e.g. movement and exploration
    System.Int32 reducedCount Optional specified amount of agent instances to create according to the available data within the AgentMapping
    Returns
    Type Description
    IDictionary<Guid, T> A unique identifiable agent entities
    Type Parameters
    Name Description
    T The type from which instances shall be created
    Exceptions
    Type Condition
    AgentInitializationException No available constructor of or missing input data for creation
    Back to top Copyright © MARS GROUP.
    HAW Hamburg