• 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 OptionSet

Inheritance
System.Object
System.Collections.ObjectModel.Collection<Option>
System.Collections.ObjectModel.KeyedCollection<System.String, Option>
OptionSet
Implements
System.Collections.Generic.IList<Option>
System.Collections.Generic.ICollection<Option>
System.Collections.Generic.IReadOnlyList<Option>
System.Collections.Generic.IReadOnlyCollection<Option>
System.Collections.Generic.IEnumerable<Option>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.ChangeItemKey(Mars.Components.Starter.Option, System.String)
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.ClearItems()
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.Contains(System.String)
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.GetKeyForItem(Mars.Components.Starter.Option)
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.InsertItem(System.Int32, Mars.Components.Starter.Option)
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.Remove(System.String)
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.RemoveItem(System.Int32)
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.SetItem(System.Int32, Mars.Components.Starter.Option)
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.Comparer
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.Dictionary
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.Item[System.String]
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.Add(Mars.Components.Starter.Option)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.Clear()
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.ClearItems()
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.Contains(Mars.Components.Starter.Option)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.CopyTo(Mars.Components.Starter.Option[], System.Int32)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.GetEnumerator()
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.IndexOf(Mars.Components.Starter.Option)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.Insert(System.Int32, Mars.Components.Starter.Option)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.Remove(Mars.Components.Starter.Option)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.Count
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.Item[System.Int32]
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.Items
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.Generic.ICollection<Mars.Components.Starter.Option>.IsReadOnly
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.IsFixedSize
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<Mars.Components.Starter.Option>.System.Collections.IList.Item[System.Int32]
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.Starter
Assembly: Mars.Components.dll
Syntax
public class OptionSet : KeyedCollection<string, Option>, IList<Option>, ICollection<Option>, IReadOnlyList<Option>, IReadOnlyCollection<Option>, IEnumerable<Option>, IList, ICollection, IEnumerable

Constructors

| Improve this Doc View Source

OptionSet()

Declaration
public OptionSet()
| Improve this Doc View Source

OptionSet(Converter<String, String>)

Declaration
public OptionSet(Converter<string, string> localization)
Parameters
Type Name Description
System.Converter<System.String, System.String> localization

Properties

| Improve this Doc View Source

MessageLocalizer

Declaration
public Converter<string, string> MessageLocalizer { get; }
Property Value
Type Description
System.Converter<System.String, System.String>

Methods

| Improve this Doc View Source

Add(String, String, Action<String>, Boolean)

Declaration
public OptionSet Add(string prototype, string description, Action<string> action, bool hidden = false)
Parameters
Type Name Description
System.String prototype
System.String description
System.Action<System.String> action
System.Boolean hidden
Returns
Type Description
OptionSet
| Improve this Doc View Source

CreateOptionContext()

Declaration
protected OptionContext CreateOptionContext()
Returns
Type Description
OptionContext
| Improve this Doc View Source

GetKeyForItem(Option)

Declaration
protected override string GetKeyForItem(Option item)
Parameters
Type Name Description
Option item
Returns
Type Description
System.String
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.GetKeyForItem(Mars.Components.Starter.Option)
| Improve this Doc View Source

GetOptionParts(String, out String, out String, out String, out String)

Declaration
protected bool GetOptionParts(string argument, out string flag, out string name, out string sep, out string value)
Parameters
Type Name Description
System.String argument
System.String flag
System.String name
System.String sep
System.String value
Returns
Type Description
System.Boolean
| Improve this Doc View Source

InsertItem(Int32, Option)

Declaration
protected override void InsertItem(int index, Option item)
Parameters
Type Name Description
System.Int32 index
Option item
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.InsertItem(System.Int32, Mars.Components.Starter.Option)
| Improve this Doc View Source

Parse(IEnumerable<String>)

Declaration
public List<string> Parse(IEnumerable<string> arguments)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> arguments
Returns
Type Description
System.Collections.Generic.List<System.String>
| Improve this Doc View Source

Parse(String, OptionContext)

Declaration
protected virtual bool Parse(string argument, OptionContext c)
Parameters
Type Name Description
System.String argument
OptionContext c
Returns
Type Description
System.Boolean
| Improve this Doc View Source

RemoveItem(Int32)

Declaration
protected override void RemoveItem(int index)
Parameters
Type Name Description
System.Int32 index
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.RemoveItem(System.Int32)
| Improve this Doc View Source

SetItem(Int32, Option)

Declaration
protected override void SetItem(int index, Option item)
Parameters
Type Name Description
System.Int32 index
Option item
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, Mars.Components.Starter.Option>.SetItem(System.Int32, Mars.Components.Starter.Option)
| Improve this Doc View Source

WriteOptionDescriptions(TextWriter)

Declaration
public void WriteOptionDescriptions(TextWriter o)
Parameters
Type Name Description
System.IO.TextWriter o

Implements

System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable

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)
Matrix.Transpose<T>(T, Int32[])
Combinatorics.Subsets<T>(IEnumerable<T>, Boolean)
Combinatorics.Subsets<T>(IEnumerable<T>, Int32, Boolean)
Matrix.SetEquals<T>(IEnumerable<T>, IEnumerable<T>)
DomainDataImporter.Import(IEnumerable<Object>, InputConfiguration)
Matrix.Apply<TData, TResult>(IList<TData>, Func<TData, TResult>, TResult[])
Matrix.Apply<TData, TResult>(IList<TData>, Func<TData, TResult>)
VectorHelper.Shuffle<T>(IList<T>)
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