C# Class DataDictionary.Types.DoubleType

Inheritance: PredefinedType
Exibir arquivo Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Public Methods

Method Description
CombineType ( Type right, BinaryExpression Operator ) : Type

Combines two types to create a new one

CompareDoubleForEquality ( double left, double right ) : bool

Compares two double values for equality

CompareForEquality ( IValue left, IValue right ) : bool
DoubleType ( EfsSystem efsSystem ) : System

Constructor

Greater ( IValue left, IValue right ) : bool
Less ( IValue left, IValue right ) : bool
Match ( Type otherType ) : bool

Indicates that the other type can be placed in variables of this type

PerformArithmericOperation ( InterpretationContext context, IValue left, BinaryExpression operation, IValue right ) : IValue

Performs the arithmetic operation based on the type of the result

convert ( IValue value ) : IValue

Converts a value into a double value

getValue ( string image ) : IValue

Gets a value based on its image

Private Methods

Method Description
getValue ( IValue val ) : double

Provides the double value from the IValue provided

Method Details

CombineType() public method

Combines two types to create a new one
public CombineType ( Type right, BinaryExpression Operator ) : Type
right Type
Operator BinaryExpression
return Type

CompareDoubleForEquality() public static method

Compares two double values for equality
public static CompareDoubleForEquality ( double left, double right ) : bool
left double
right double
return bool

CompareForEquality() public method

public CompareForEquality ( IValue left, IValue right ) : bool
left IValue
right IValue
return bool

DoubleType() public method

Constructor
public DoubleType ( EfsSystem efsSystem ) : System
efsSystem EfsSystem
return System

Greater() public method

public Greater ( IValue left, IValue right ) : bool
left IValue
right IValue
return bool

Less() public method

public Less ( IValue left, IValue right ) : bool
left IValue
right IValue
return bool

Match() public method

Indicates that the other type can be placed in variables of this type
public Match ( Type otherType ) : bool
otherType Type
return bool

PerformArithmericOperation() public method

Performs the arithmetic operation based on the type of the result
public PerformArithmericOperation ( InterpretationContext context, IValue left, BinaryExpression operation, IValue right ) : IValue
context InterpretationContext The context used to perform this operation
left IValue
operation BinaryExpression
right IValue
return IValue

convert() public method

Converts a value into a double value
public convert ( IValue value ) : IValue
value IValue
return IValue

getValue() public method

Gets a value based on its image
public getValue ( string image ) : IValue
image string
return IValue