C# Class DataDictionary.Interpreter.ExplanationPart

Part of the explanation of an evaluation
Afficher le fichier Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Méthodes publiques

Méthode Description
AddSubExplanation ( ExplanationPart explain, ExplanationPart subExplain ) : void

Adds a sub explanation for the explain provided as parameter

CreateNamedSubExplanation ( ExplanationPart explain, string message, object leftPart ) : ExplanationPart

Creates a sub explanation for the explain provided as parameter

CreateSubExplanation ( ExplanationPart explain, ModelElement root, DataDictionary.Rules.Change change ) : ExplanationPart

Creates a sub explanation for the explain provided as parameter

CreateSubExplanation ( ExplanationPart explain, object leftPart, INamable rightPart = null ) : ExplanationPart

Creates a sub explanation for the explain provided as parameter

CreateSubExplanation ( ExplanationPart explain, string name ) : ExplanationPart

Creates a sub explanation for the explain provided as parameter

ExplanationPart ( ModelElement element, DataDictionary.Rules.Change change ) : System.Collections.Generic

Constructor for an explanation, based on a change

ExplanationPart ( ModelElement element, object leftPart, INamable rightPart = null ) : System.Collections.Generic

Constructor

ExplanationPart ( ModelElement element, string message, INamable rightPart = null ) : System.Collections.Generic

Constructor

SetNamable ( ExplanationPart explain, INamable namable ) : void

Sets the value associated to the explanation

Private Methods

Méthode Description
ExplainLeftPart ( object leftPart ) : string

Explains a left part

explainNamable ( INamable namable ) : string

Provides the textual representation of the namable provided

Method Details

AddSubExplanation() public static méthode

Adds a sub explanation for the explain provided as parameter
public static AddSubExplanation ( ExplanationPart explain, ExplanationPart subExplain ) : void
explain ExplanationPart
subExplain ExplanationPart
Résultat void

CreateNamedSubExplanation() public static méthode

Creates a sub explanation for the explain provided as parameter
public static CreateNamedSubExplanation ( ExplanationPart explain, string message, object leftPart ) : ExplanationPart
explain ExplanationPart
message string
leftPart object
Résultat ExplanationPart

CreateSubExplanation() public static méthode

Creates a sub explanation for the explain provided as parameter
public static CreateSubExplanation ( ExplanationPart explain, ModelElement root, DataDictionary.Rules.Change change ) : ExplanationPart
explain ExplanationPart
root ModelElement
change DataDictionary.Rules.Change
Résultat ExplanationPart

CreateSubExplanation() public static méthode

Creates a sub explanation for the explain provided as parameter
public static CreateSubExplanation ( ExplanationPart explain, object leftPart, INamable rightPart = null ) : ExplanationPart
explain ExplanationPart
leftPart object What is evaluated
rightPart INamable The evaluated value
Résultat ExplanationPart

CreateSubExplanation() public static méthode

Creates a sub explanation for the explain provided as parameter
public static CreateSubExplanation ( ExplanationPart explain, string name ) : ExplanationPart
explain ExplanationPart
name string
Résultat ExplanationPart

ExplanationPart() public méthode

Constructor for an explanation, based on a change
public ExplanationPart ( ModelElement element, DataDictionary.Rules.Change change ) : System.Collections.Generic
element ModelElement The element for which this explanation part is created
change DataDictionary.Rules.Change The change performed
Résultat System.Collections.Generic

ExplanationPart() public méthode

Constructor
public ExplanationPart ( ModelElement element, object leftPart, INamable rightPart = null ) : System.Collections.Generic
element ModelElement The element for which this explanation part is created
leftPart object The left path to associate to this explanation
rightPart INamable The value associate to this left part
Résultat System.Collections.Generic

ExplanationPart() public méthode

Constructor
public ExplanationPart ( ModelElement element, string message, INamable rightPart = null ) : System.Collections.Generic
element ModelElement The element for which this explanation part is created
message string The message to display. MAKE SURE you do not use string concatenation to create this message
rightPart INamable The value associated to the message, if any
Résultat System.Collections.Generic

SetNamable() public static méthode

Sets the value associated to the explanation
public static SetNamable ( ExplanationPart explain, INamable namable ) : void
explain ExplanationPart
namable INamable
Résultat void