Class VirtualParameterHierarchy
The virtual parameter hierarchy.
Inheritance
Implements
Namespace: MESL.SqlRace.Domain.VirtualParameters
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class VirtualParameterHierarchy : Object, IProvideHierarchy
Constructors
VirtualParameterHierarchy()
Initialises a new instance of the VirtualParameterHierarchy class.
Declaration
public VirtualParameterHierarchy()
VirtualParameterHierarchy(String, PdaType)
Initialises a new instance of the VirtualParameterHierarchy class.
Declaration
public VirtualParameterHierarchy(string identifier, PdaType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | The identifier. |
PdaType | type | The type. |
VirtualParameterHierarchy(String, PdaType, String)
Initialises a new instance of the VirtualParameterHierarchy class.
Declaration
public VirtualParameterHierarchy(string identifier, PdaType type, string functionCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | The identifier. |
PdaType | type | The type. |
System.String | functionCode | The function code. |
Properties
FunctionCode
Gets or sets the function code.
Declaration
public string FunctionCode { get; set; }
Property Value
Type | Description |
---|---|
System.String | The function code. |
Hierarchy
Gets or sets the hierarchy.
Declaration
public List<IProvideHierarchy> Hierarchy { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IProvideHierarchy> | The hierarchy. |
Identifier
Gets or sets the identifier.
Declaration
public string Identifier { get; set; }
Property Value
Type | Description |
---|---|
System.String | The identifier. |
Identifiers
Gets the identifiers.
Declaration
public List<string> Identifiers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | The identifiers. |
ParameterType
Gets or sets the parameter type.
Declaration
public PdaType ParameterType { get; set; }
Property Value
Type | Description |
---|---|
PdaType | The parameter type. |
Methods
Create(Session, String)
Create hierarchy for a virtual parameter.
Declaration
public static VirtualParameterHierarchy Create(Session session, string identifier)
Parameters
Type | Name | Description |
---|---|---|
Session | session | The session. |
System.String | identifier | The identifier. |
Returns
Type | Description |
---|---|
VirtualParameterHierarchy |
Display()
Display hierarchy.
Declaration
public string Display()
Returns
Type | Description |
---|---|
System.String | The System.String. |
Execute(Session)
Execute and Display hierarchy using 1 sample for each Parameter from the Fastest Lap.
Declaration
public string Execute(Session session)
Parameters
Type | Name | Description |
---|---|---|
Session | session | The session. |
Returns
Type | Description |
---|---|
System.String | The System.String. |
Execute(Session, String, Int32, Int64, Int64)
The execute.
Declaration
public static Dictionary<string, List<VirtualParameterHierarchy.ExecutionResult>> Execute(Session session, string identifier, int numberOfSamples, long startTime, long endTime)
Parameters
Type | Name | Description |
---|---|---|
Session | session | The session. |
System.String | identifier | The identifier. |
System.Int32 | numberOfSamples | The number of samples. |
System.Int64 | startTime | The start time. |
System.Int64 | endTime | The end Time. |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<VirtualParameterHierarchy.ExecutionResult>> | Dictionary of Identifier and Samples. |
ToString()
ToString - display hierarchy.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The System.String. |