Class BooleanPrimitive
Inheritance
BooleanPrimitive
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class BooleanPrimitive : IPrimitive, IABRInput
Constructors
|
Improve this Doc
View Source
BooleanPrimitive()
Declaration
public BooleanPrimitive()
|
Improve this Doc
View Source
BooleanPrimitive(bool)
Declaration
public BooleanPrimitive(bool value)
Parameters
Type |
Name |
Description |
bool |
value |
|
|
Improve this Doc
View Source
BooleanPrimitive(string)
Declaration
public BooleanPrimitive(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 Regex ParsingRegex { get; }
Property Value
|
Improve this Doc
View Source
Value
Declaration
public bool 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 void SetFromString(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
implicit operator BooleanPrimitive(bool)
Declaration
public static implicit operator BooleanPrimitive(bool b)
Parameters
Type |
Name |
Description |
bool |
b |
|
Returns
Implements