Constructs a new MedianTask.
Optional
properties: IMedianTaskProperties to set
A list of subjobs to process and produce a list of result values.
The maximum range between the minimum and maximum values before a successful median can be yielded.
The minimum number of values before a successful median can be yielded.
A list of subtasks to process and produce a list of result values.
Static
createCreates a new MedianTask instance using the specified properties.
Optional
properties: IMedianTaskProperties to set
MedianTask instance
Static
decodeDecodes a MedianTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
MedianTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a MedianTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
MedianTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified MedianTask message. Does not implicitly verify messages.
MedianTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified MedianTask message, length delimited. Does not implicitly verify messages.
MedianTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a MedianTask message from a plain object. Also converts values to their respective internal types.
Plain object
MedianTask
Static
getStatic
toCreates a plain object from a MedianTask message. Also converts values to other types if specified.
MedianTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
Returns the median (middle) of all the results returned by the provided subtasks and subjobs. Nested tasks must return a Number.
Input: None
Returns: A numerical result.
Example: Returns the median numerical result of 3 tasks.
Example: Returns the median numerical result of 3 jobs.