C# Class DataDictionary.Types.Structure

Inheritance: Generated.Structure, ISubDeclarator, IFinder
Afficher le fichier Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
AddModelElement ( IModelElement element ) : void

Adds a model element in this model element

ApplicableRule ( acceptor priority ) : bool

Indicates that a rule is applicable for this type at the provided priority

ClearCache ( ) : void

Clears the cache associated to this model element

CompareForEquality ( IValue left, IValue right ) : bool
ComputeUnifiedStructure ( ) : void

Computes the unified structure according to the update information

CreateDefault ( ICollection enclosingCollection, bool isInterface ) : Structure

Creates a default element

CreateStatusMessage ( ) : string

Creates the status message

CreateStructureUpdate ( Dictionary dictionary ) : Structure

Creates a copy of the structure in the designated dictionary. The namespace structure is copied over. The new structure is set to update this one.

Find ( string name, List retVal ) : void

Appends the INamable which match the name provided in retVal

FindProcedure ( string name ) : DataDictionary.Functions.Procedure

Provides the procedure which corresponds to the name provided

FindRule ( string name ) : DataDictionary.Rules.Rule

Provides the rule which corresponds to the name provided

FindStateMachine ( string name ) : StateMachine

Provides the state machine which corresponds to the name provided

FindStructureElement ( string name ) : StructureElement

Provides the structure element which corresponds to the name provided

GenerateInheritedFields ( ) : void

Generates the fields from the interited interfaces, if they are missing

GetExplain ( TextualExplanation explanation, bool explainSubElements ) : void

Builds the explanation of the element

InitDeclaredElements ( ) : void

Initialises the declared elements

InterfaceIsInherited ( Structure anInterface ) : bool

Indicates if the structure implements the interface provided as parameter

Match ( Type otherType ) : bool

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

RecoverUpdateInformation ( ) : void

Ensures that all update information has been deleted

ResetUnifiedStructure ( DataDictionary.src.UnifiedStructure newValue ) : void

Checks that the proposed new value for the unified structure used this and, in that case, sets the Unified structure to the proposed value

SetUpdateInformation ( ModelElement source ) : void

Sets the update information for this structure

Structure ( ) : System

Constructor

StructureElementIsInherited ( StructureElement anElement ) : bool

Indicates if the given structure element is inherited from an interface or not

ValidBinaryOperation ( BinaryExpression operation, Type otherType ) : bool

Indicates that binary operation is valid for this type and the other type

Method Details

AddModelElement() public méthode

Adds a model element in this model element
public AddModelElement ( IModelElement element ) : void
element IModelElement
Résultat void

ApplicableRule() public méthode

Indicates that a rule is applicable for this type at the provided priority
public ApplicableRule ( acceptor priority ) : bool
priority DataDictionary.Generated.acceptor
Résultat bool

ClearCache() public méthode

Clears the cache associated to this model element
public ClearCache ( ) : void
Résultat void

CompareForEquality() public méthode

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

ComputeUnifiedStructure() public méthode

Computes the unified structure according to the update information
public ComputeUnifiedStructure ( ) : void
Résultat void

CreateDefault() public static méthode

Creates a default element
public static CreateDefault ( ICollection enclosingCollection, bool isInterface ) : Structure
enclosingCollection ICollection
isInterface bool
Résultat Structure

CreateStatusMessage() public méthode

Creates the status message
public CreateStatusMessage ( ) : string
Résultat string

CreateStructureUpdate() public méthode

Creates a copy of the structure in the designated dictionary. The namespace structure is copied over. The new structure is set to update this one.
public CreateStructureUpdate ( Dictionary dictionary ) : Structure
dictionary Dictionary The target dictionary of the copy
Résultat Structure

Find() public méthode

Appends the INamable which match the name provided in retVal
public Find ( string name, List retVal ) : void
name string
retVal List
Résultat void

FindProcedure() public méthode

Provides the procedure which corresponds to the name provided
public FindProcedure ( string name ) : DataDictionary.Functions.Procedure
name string
Résultat DataDictionary.Functions.Procedure

FindRule() public méthode

Provides the rule which corresponds to the name provided
public FindRule ( string name ) : DataDictionary.Rules.Rule
name string
Résultat DataDictionary.Rules.Rule

FindStateMachine() public méthode

Provides the state machine which corresponds to the name provided
public FindStateMachine ( string name ) : StateMachine
name string
Résultat StateMachine

FindStructureElement() public méthode

Provides the structure element which corresponds to the name provided
public FindStructureElement ( string name ) : StructureElement
name string
Résultat StructureElement

GenerateInheritedFields() public méthode

Generates the fields from the interited interfaces, if they are missing
public GenerateInheritedFields ( ) : void
Résultat void

GetExplain() public méthode

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)
Résultat void

InitDeclaredElements() public méthode

Initialises the declared elements
public InitDeclaredElements ( ) : void
Résultat void

InterfaceIsInherited() public méthode

Indicates if the structure implements the interface provided as parameter
public InterfaceIsInherited ( Structure anInterface ) : bool
anInterface Structure
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

RecoverUpdateInformation() public méthode

Ensures that all update information has been deleted
public RecoverUpdateInformation ( ) : void
Résultat void

ResetUnifiedStructure() public méthode

Checks that the proposed new value for the unified structure used this and, in that case, sets the Unified structure to the proposed value
public ResetUnifiedStructure ( DataDictionary.src.UnifiedStructure newValue ) : void
newValue DataDictionary.src.UnifiedStructure The proposed new value for the unified structure
Résultat void

SetUpdateInformation() public méthode

Sets the update information for this structure
public SetUpdateInformation ( ModelElement source ) : void
source ModelElement The source structure for which this structure has been created (as an update)
Résultat void

Structure() public méthode

Constructor
public Structure ( ) : System
Résultat System

StructureElementIsInherited() public méthode

Indicates if the given structure element is inherited from an interface or not
public StructureElementIsInherited ( StructureElement anElement ) : bool
anElement StructureElement
Résultat bool

ValidBinaryOperation() public méthode

Indicates that binary operation is valid for this type and the other type
public ValidBinaryOperation ( BinaryExpression operation, Type otherType ) : bool
operation DataDictionary.Interpreter.BinaryExpression
otherType Type
Résultat bool