Class SimulationRun.Types.Sampling
Runs each scenario more than once, so a flaky sample is distinguishable from a broken scenario. Both fields are required when it is present.
public sealed class SimulationRun.Types.Sampling : IMessage<SimulationRun.Types.Sampling>, IEquatable<SimulationRun.Types.Sampling>, IDeepCloneable<SimulationRun.Types.Sampling>, IBufferMessage, IMessage
- Inheritance
-
SimulationRun.Types.Sampling
- Implements
-
IBufferMessageIMessage
- Inherited Members
Constructors
Sampling()
public Sampling()
Sampling(Sampling)
public Sampling(SimulationRun.Types.Sampling other)
Parameters
otherSimulationRun.Types.Sampling
Fields
PassRateFieldNumber
Field number for the "pass_rate" field.
public const int PassRateFieldNumber = 2
Field Value
SamplesFieldNumber
Field number for the "samples" field.
public const int SamplesFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<SimulationRun.Types.Sampling> Parser { get; }
Property Value
- MessageParser<SimulationRun.Types.Sampling>
PassRate
The share of a scenario's samples that must pass for that scenario to pass, 0-1. A scenario needs round(rate × samples) of them, so 1 requires every sample and 0.67 of 3 requires 2.
public double PassRate { get; set; }
Property Value
Samples
Samples per scenario, > 1. The run holds scenarios × samples jobs, subject to the usual job cap.
public int Samples { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public SimulationRun.Types.Sampling Clone()
Returns
- SimulationRun.Types.Sampling
A deep clone of this object.
Equals(Sampling)
public bool Equals(SimulationRun.Types.Sampling other)
Parameters
otherSimulationRun.Types.Sampling
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(Sampling)
Merges the given message into this one.
public void MergeFrom(SimulationRun.Types.Sampling other)
Parameters
otherSimulationRun.Types.Sampling
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.