C# Класс DataDictionary.Tests.Translations.Translation

Наследование: Generated.Translation, ITextualExplain, IEditable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddModelElement ( IModelElement element ) : void

Adds a model element in this model element

CreateDefault ( ICollection enclosingCollection, SourceText sourceText ) : Translation

Creates a default element

GetExplain ( TextualExplanation explanation, bool explainSubElements ) : void

Builds the explanation of the element

Translation ( ) : System

Constructor

UpdateStep ( Step step ) : void

Updates the step according to this translation

format_decimal ( string str ) : int

Takes the string provided and returns the corresponding decimal value

format_decimal_as_str ( string str ) : string

Takes the string provided and returns the corresponding decimal value, as a string

format_message ( DataDictionary.Tests.DBElements.DBMessage message ) : string

Takes the message provided and returns the corresponding message value

format_str ( string str ) : string

Takes the string provided and returns the formatted string

getSourceTextExplain ( ) : string

Приватные методы

Метод Описание
FillDefaultPacket ( DataDictionary.Tests.DBElements.DBMessage message, IVariable structure ) : IValue
FillStructure ( NameSpace aNameSpace, ArrayList fields, int &currentIndex, StructureValue aStructure ) : void

Fills the given structure with the values provided from the database

FindStructure ( int nidPacket ) : StructureValue

Finds the type of the structure corresponding to the provided NID_PACKET

IsRequirementPresent ( Step step, ReqRef reqRef ) : bool

Indicates that the requirement is already present in the step

Review ( DataDictionary.Rules.Action action ) : void

Review the expressions associated to this action

Review ( Expectation expectation ) : void

Review the expressions associated to this expectation

ReviewExpression ( Step step, string expression ) : string

Updates an expression according to translation rules

findNameSpace ( string name ) : NameSpace
format_eurobalise_message ( DataDictionary.Tests.DBElements.DBMessage message ) : string
format_euroloop_message ( DataDictionary.Tests.DBElements.DBMessage message ) : string
format_euroradio_message ( DataDictionary.Tests.DBElements.DBMessage message ) : string
format_level ( acceptor level ) : string

Takes the string provided and returns the corresponding Level enum

format_level ( string str ) : string

Takes the string provided and returns the corresponding Level enum

format_mode ( acceptor mode ) : string

Takes the enum provided and returns the corresponding Mode enum

format_mode ( string str ) : string

Takes the string provided and returns the corresponding Mode enum

get_message_packets ( DataDictionary.Tests.DBElements.DBMessage message, NameSpace nameSpace, EfsSystem system ) : ListValue
get_namespace_from_ID ( string str ) : string

Takes the string provided and returns the corresponding RBC message

isPacket ( IVariable structure ) : bool

Determines whether a EFS structure corresponds to a packet

Описание методов

AddModelElement() публичный Метод

Adds a model element in this model element
public AddModelElement ( IModelElement element ) : void
element IModelElement
Результат void

CreateDefault() публичный статический Метод

Creates a default element
public static CreateDefault ( ICollection enclosingCollection, SourceText sourceText ) : Translation
enclosingCollection ICollection
sourceText SourceText
Результат Translation

GetExplain() публичный Метод

Builds the explanation of the element
public GetExplain ( TextualExplanation explanation, bool explainSubElements ) : void
explanation TextualExplanation
explainSubElements bool Precises if we need to explain the sub elements (if any)
Результат void

Translation() публичный Метод

Constructor
public Translation ( ) : System
Результат System

UpdateStep() публичный Метод

Updates the step according to this translation
public UpdateStep ( Step step ) : void
step DataDictionary.Generated.Step
Результат void

format_decimal() публичный статический Метод

Takes the string provided and returns the corresponding decimal value
public static format_decimal ( string str ) : int
str string
Результат int

format_decimal_as_str() публичный статический Метод

Takes the string provided and returns the corresponding decimal value, as a string
public static format_decimal_as_str ( string str ) : string
str string
Результат string

format_message() публичный статический Метод

Takes the message provided and returns the corresponding message value
public static format_message ( DataDictionary.Tests.DBElements.DBMessage message ) : string
message DataDictionary.Tests.DBElements.DBMessage
Результат string

format_str() публичный статический Метод

Takes the string provided and returns the formatted string
public static format_str ( string str ) : string
str string
Результат string

getSourceTextExplain() публичный Метод

public getSourceTextExplain ( ) : string
Результат string