• MARS Website
  • 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>
    • SpatialLane
    • 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
    • StepExecutionContext
  • 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 VectorLayer<T>

Provides a generic vector layer implementation where an input type T is expected to represent features within the layer
Inheritance
System.Object
AbstractLayer
AbstractEnvelopedLayer
VectorLayer<T>
VectorLayer
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
IVectorLayer<T>
IVectorLayer
IEnvelopDataLayer
IDataSet
System.IDisposable
IDataLayer
IChangingLayer
ILayer
IModelObject
INotifyChangedSource<IVectorFeature>
Inherited Members
AbstractEnvelopedLayer.IsTemporalChanging
AbstractEnvelopedLayer.MinLon
AbstractEnvelopedLayer.MinLat
AbstractEnvelopedLayer.MaxLon
AbstractEnvelopedLayer.MaxLat
AbstractEnvelopedLayer.IsDisposed
AbstractEnvelopedLayer.Dispose()
AbstractEnvelopedLayer.Dispose(Boolean)
AbstractLayer.Mapping
AbstractLayer.RegisterAgent
AbstractLayer.UnregisterAgent
AbstractLayer.Context
AbstractLayer.Container
AbstractLayer.EntityManager
AbstractLayer.GetCurrentTick()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Components.Layers
Assembly: Mars.Components.dll
Syntax
public abstract class VectorLayer<T> : AbstractEnvelopedLayer, IEnumerable<T>, IEnumerable, IVectorLayer<T>, IVectorLayer, IEnvelopDataLayer, IDataSet, IDisposable, IDataLayer, IChangingLayer, ILayer, IModelObject, INotifyChangedSource<IVectorFeature> where T : IVectorFeature, new()
Type Parameters
Name Description
T The concrete type implementing the IVectorFeature contract

Constructors

| Improve this Doc View Source

VectorLayer()

Provides a generic vector layer implementation where an input type T is expected to represent features within the layer
Declaration
protected VectorLayer()

Properties

| Improve this Doc View Source

Extent

Gets the bounding box of this vector-layer.
Declaration
public override BoundingBox Extent { get; set; }
Property Value
Type Description
BoundingBox
Overrides
AbstractEnvelopedLayer.Extent
| Improve this Doc View Source

Features

Feature collection of each vector
Declaration
public ICollection<IVectorFeature> Features { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<IVectorFeature>
| Improve this Doc View Source

Filter

Gets or sets the selector filter function to define domain-specific conditions to only load only a subset of IMarsFeatures passing this predicate.
Declaration
public Func<IMarsFeature, bool> Filter { get; set; }
Property Value
Type Description
System.Func<IMarsFeature, System.Boolean> Returns true when the feature shall be loaded into the vector, otherwise its is skipped.
| Improve this Doc View Source

IsChanged

Provides a generic vector layer implementation where an input type T is expected to represent features within the layer
Declaration
public bool IsChanged { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

NearestOperationPlatform

Provides a generic vector layer implementation where an input type T is expected to represent features within the layer
Declaration
public INearestOperation NearestOperationPlatform { get; }
Property Value
Type Description
INearestOperation

Methods

| Improve this Doc View Source

Explore(Double[], Double, Func<T, Boolean>)

Executes a point query at the specified position to get all limited order of features inside the radius in kilometre. Optional it can be filtered by a predicate over attribute table
Declaration
public IEnumerable<T> Explore(double[] position, double radius = -1, Func<T, bool> predicate = null)
Parameters
Type Name Description
System.Double[] position The outgoing position (lat, lon) from which to start the query.
System.Double radius The exploration radius in meter or -1 for infinite.
System.Func<T, System.Boolean> predicate The optional predicate to filter out specific features
Returns
Type Description
System.Collections.Generic.IEnumerable<T> A collection with distance based order of the explored features.
| Improve this Doc View Source

GetEnumerator()

Provides a generic vector layer implementation where an input type T is expected to represent features within the layer
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T>
| Improve this Doc View Source

InitLayer(LayerInitData, RegisterAgent, UnregisterAgent)

Provides a generic vector layer implementation where an input type T is expected to represent features within the layer
Declaration
public virtual bool InitLayer(LayerInitData layerInitData, RegisterAgent registerAgentHandle = null, UnregisterAgent unregisterAgent = null)
Parameters
Type Name Description
LayerInitData layerInitData
RegisterAgent registerAgentHandle
UnregisterAgent unregisterAgent
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Insert(IDomainData)

Provides a generic vector layer implementation where an input type T is expected to represent features within the layer
Declaration
public T Insert(IDomainData data)
Parameters
Type Name Description
IDomainData data
Returns
Type Description
T
| Improve this Doc View Source

Nearest(Double[], Func<T, Boolean>)

Tries to find the nearest domain object for given parameters.
Declaration
public T Nearest(double[] position, Func<T, bool> predicate = null)
Parameters
Type Name Description
System.Double[] position The outgoing position (lat, lon) from which to start the query.
System.Func<T, System.Boolean> predicate The optional predicate to filter out specific features
Returns
Type Description
T The found T or null if none could be found.
| Improve this Doc View Source

Nearest(Double[], Int32, Func<T, Boolean>)

Tries to find the k-nearest domain object for given parameters.
Declaration
public IEnumerable<T> Nearest(double[] position, int k, Func<T, bool> predicate = null)
Parameters
Type Name Description
System.Double[] position The outgoing position (lat, lon) from which to start the query.
System.Int32 k The k-limitation of objects to retrieve.
System.Func<T, System.Boolean> predicate The optional predicate to filter out specific features
Returns
Type Description
System.Collections.Generic.IEnumerable<T> The found T or null if none could be found.
| Improve this Doc View Source

Read(Double[])

Reads the value exactly at the specified coordinate; otherwise returns the default of .
Declaration
public T Read(double[] position)
Parameters
Type Name Description
System.Double[] position The coordinate to read from.
Returns
Type Description
T Returns the data object at the specified coordinate; otherwise null.
| Improve this Doc View Source

Region(Double[], Double, Func<T, Boolean>)

Finds a randomly selected entity within region, given by the radius and position.
Declaration
public IEnumerable<T> Region(double[] position, double radius, Func<T, bool> predicate = null)
Parameters
Type Name Description
System.Double[] position Source position from where to explore.
System.Double radius The maximum distance in to this position (For GIS based data often in meter).
System.Func<T, System.Boolean> predicate An optional predicate used filter out a specific data object.
Returns
Type Description
System.Collections.Generic.IEnumerable<T> Returns true, when any entity was found; otherwise false.
| Improve this Doc View Source

Remove(T)

Provides a generic vector layer implementation where an input type T is expected to represent features within the layer
Declaration
public void Remove(T entity)
Parameters
Type Name Description
T entity
| Improve this Doc View Source

SetCurrentTick(Int64)

Sets the current simulation step of the layer. This will be called by the Executor to deliver the current logical simulation step into the layer.
Declaration
public virtual void SetCurrentTick(long currentStep)
Parameters
Type Name Description
System.Int64 currentStep A positive number

Events

| Improve this Doc View Source

CollectionChanged

Occurs when items were added, replaced or removed.
Declaration
public event EventHandler<CollectionChangedEventArgs<IVectorFeature>> CollectionChanged
Event Type
Type Description
System.EventHandler<Mars.Common.Core.Collections.ObservableCollection.CollectionChangedEventArgs<IVectorFeature>>

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Provides a generic vector layer implementation where an input type T is expected to represent features within the layer
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
IVectorLayer<T>
IVectorLayer
IEnvelopDataLayer
IDataSet
System.IDisposable
IDataLayer
IChangingLayer
ILayer
IModelObject
INotifyChangedSource<T>

Extension Methods

Serializer.Save<T>(T, out Byte[], SerializerCompression)
Serializer.Save<T>(T, Stream, SerializerCompression)
Serializer.Save<T>(T, BinaryFormatter, Stream, SerializerCompression)
Serializer.Save<T>(T, String, SerializerCompression)
Serializer.Save<T>(T, String)
Matrix.Concatenate<T>(T, T[])
Matrix.Replace<T>(T, Object, Object)
DomainDataImporter.Import(Object, InputConfiguration)
ObjectSerialize.Serialize(Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © MARS GROUP. HAW Hamburg