Class TripsCollection
Holds TripPositions saved in a temporal order and structured by any object type.
Inheritance
System.Object
TripsCollection
Inherited Members
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.Core.Data.Wrapper.Memory
Assembly: Mars.Core.dll
Syntax
public sealed class TripsCollection
Constructors
| Improve this Doc View SourceTripsCollection(ISimulationContext)
Holds TripPositions saved in a temporal order and structured by any object type.
Declaration
public TripsCollection(ISimulationContext context)
Parameters
Type | Name | Description |
---|---|---|
ISimulationContext | context |
Properties
| Improve this Doc View SourceResult
Holds all TripPositions structured by an object.
Declaration
public List<(object, List<TripPosition>)> Result { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.ValueTuple<System.Object, System.Collections.Generic.List<TripPosition>>> |
Methods
| Improve this Doc View SourceAdd(Position)
Saves the given position in the collection using the last used key to structure it..
Declaration
public void Add(Position position)
Parameters
Type | Name | Description |
---|---|---|
Position | position | That is stored. |
Add(Object, Position)
Saves the given position for given key in the collection. If the last key was equals to given key, the
position is added to existing (sub-)collection. Otherwise create a new subcollection with given key and add.
Declaration
public void Add(object key, Position position)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | Used to collate positions that belong together. |
Position | position | That is stored. |