C# Class DataDictionary.Types.IntegerType

Inheritance: PredefinedType
Afficher le fichier Open project: ERTMSSolutions/ERTMSFormalSpecs

Méthodes publiques

Méthode Description
CompareForEquality ( IValue left, IValue right ) : bool
Greater ( IValue left, IValue right ) : bool
IntegerType ( EfsSystem efsSystem ) : System

Constructor

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 an int value

getValue ( string image ) : IValue

Gets a value based on its image

Private Methods

Méthode Description
getValue ( IValue val ) : Decimal

Provides the int value from the IValue provided

Method Details

CompareForEquality() public méthode

public CompareForEquality ( IValue left, IValue right ) : bool
left IValue
right IValue
Résultat bool

Greater() public méthode

public Greater ( IValue left, IValue right ) : bool
left IValue
right IValue
Résultat bool

IntegerType() public méthode

Constructor
public IntegerType ( EfsSystem efsSystem ) : System
efsSystem EfsSystem
Résultat System

Less() public méthode

public Less ( IValue left, IValue right ) : bool
left IValue
right IValue
Résultat bool

Match() public méthode

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

PerformArithmericOperation() public méthode

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
Résultat IValue

convert() public méthode

Converts a value into an int value
public convert ( IValue value ) : IValue
value IValue
Résultat IValue

getValue() public méthode

Gets a value based on its image
public getValue ( string image ) : IValue
image string
Résultat IValue