Bexel Manager API Documentation
Bexel.Api.Scheduling.TaskNumericProperty Class Reference

Represents a property which holds a numerical value. More...

Inheritance diagram for Bexel.Api.Scheduling.TaskNumericProperty:
Bexel.Api.Scheduling.TaskProperty Bexel.Api.ApiObject

Public Member Functions

bool ValueEquals (double other, double epsilon=DefaultEpsilonValue)
 Determines whether the specified number is equal by value to the current property. More...
 
override bool ValueEquals (object obj)
 Determines whether the specified object is equal by value to the current property. More...
 
- Public Member Functions inherited from Bexel.Api.Scheduling.TaskProperty
virtual bool ValueEquals (TaskProperty other)
 Determines whether the specified property is equal by value to the current property. More...
 
override int GetHashCode ()
 
override bool Equals (object obj)
 

Public Attributes

const double DefaultEpsilonValue = 0.001
 The default numerical tolerance which is used when comparing values. More...
 

Protected Member Functions

 TaskNumericProperty (TaskPropertyDefinition definition)
 
- Protected Member Functions inherited from Bexel.Api.Scheduling.TaskProperty
 TaskProperty (TaskPropertyDefinition definition)
 
- Protected Member Functions inherited from Bexel.Api.ApiObject
virtual void CheckValidity ()
 

Properties

abstract new double Value [get]
 
override object ValueProtected [get]
 
- Properties inherited from Bexel.Api.Scheduling.TaskProperty
override bool IsValid [get]
 
virtual bool HasValue [get]
 Returns a value indicating whether the task property is initialized. More...
 
TaskPropertyDefinition Definition [get]
 Returns the definition of the property. More...
 
string Name [get]
 Returns the name of the property. More...
 
object Value [get]
 Returns the value of the property. More...
 
abstract object ValueProtected [get]
 
- Properties inherited from Bexel.Api.ApiObject
abstract bool IsValid [get]
 Indicates if the API object is valid or not. More...
 

Detailed Description

Represents a property which holds a numerical value.

Member Function Documentation

◆ ValueEquals() [1/2]

bool Bexel.Api.Scheduling.TaskNumericProperty.ValueEquals ( double  other,
double  epsilon = DefaultEpsilonValue 
)

Determines whether the specified number is equal by value to the current property.

Parameters
otherThe number to compare with the current property.
epsilonThe numerical tolerance when comparing two floating point numbers. If not provided the Bexel.Api.Scheduling.TaskNumericProperty.DefaultEpsilonValue will be used.
Returns
True if the specified number is equal by value to the current property, False otherwise.

◆ ValueEquals() [2/2]

override bool Bexel.Api.Scheduling.TaskNumericProperty.ValueEquals ( object  obj)
virtual

Determines whether the specified object is equal by value to the current property.

Parameters
objThe object to compare with the current property.
Returns
True if the specified object is equal by value to the current property, False otherwise.

Reimplemented from Bexel.Api.Scheduling.TaskProperty.

Member Data Documentation

◆ DefaultEpsilonValue

const double Bexel.Api.Scheduling.TaskNumericProperty.DefaultEpsilonValue = 0.001

The default numerical tolerance which is used when comparing values.