Class FloatPrimitive
Inheritance
FloatPrimitive
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class FloatPrimitive : IFloatPrimitive, IPrimitive, IABRInput
Constructors
|
Improve this Doc
View Source
FloatPrimitive()
Declaration
|
Improve this Doc
View Source
FloatPrimitive(float)
Declaration
public FloatPrimitive(float value)
Parameters
Type |
Name |
Description |
float |
value |
|
|
Improve this Doc
View Source
FloatPrimitive(string)
Declaration
public FloatPrimitive(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Properties
|
Improve this Doc
View Source
Genre
"Genre" of the input - is it Data, a visual element, or something else?
Declaration
public ABRInputGenre Genre { get; }
Property Value
|
Improve this Doc
View Source
ParsingRegex
The regex to use to convert this from a string. Group named "value"
should be the floating point number, group named "units" should be the
units, if any.
Declaration
public virtual Regex ParsingRegex { get; }
Property Value
|
Improve this Doc
View Source
Units
Declaration
public virtual string Units { get; }
Property Value
|
Improve this Doc
View Source
Value
Declaration
public float Value { get; protected set; }
Property Value
Methods
|
Improve this Doc
View Source
Get the "raw" ABR input - the one that is represented in the state JSON
Declaration
public RawABRInput GetRawABRInput()
Returns
|
Improve this Doc
View Source
SetFromString(string)
Set the value of the primitive from a string (similar to using the string constructor)
Declaration
public virtual void SetFromString(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements