C# Class DataDictionary.Types.Structure

Inheritance: Generated.Structure, ISubDeclarator, IFinder
Mostra file Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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 method

Adds a model element in this model element
public AddModelElement ( IModelElement element ) : void
element IModelElement
return void

ApplicableRule() public method

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

ClearCache() public method

Clears the cache associated to this model element
public ClearCache ( ) : void
return void

CompareForEquality() public method

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

ComputeUnifiedStructure() public method

Computes the unified structure according to the update information
public ComputeUnifiedStructure ( ) : void
return void

CreateDefault() public static method

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

CreateStatusMessage() public method

Creates the status message
public CreateStatusMessage ( ) : string
return string

CreateStructureUpdate() public method

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
return Structure

Find() public method

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

FindProcedure() public method

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

FindRule() public method

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

FindStateMachine() public method

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

FindStructureElement() public method

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

GenerateInheritedFields() public method

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

GetExplain() public method

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)
return void

InitDeclaredElements() public method

Initialises the declared elements
public InitDeclaredElements ( ) : void
return void

InterfaceIsInherited() public method

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

RecoverUpdateInformation() public method

Ensures that all update information has been deleted
public RecoverUpdateInformation ( ) : void
return void

ResetUnifiedStructure() public method

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
return void

SetUpdateInformation() public method

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)
return void

Structure() public method

Constructor
public Structure ( ) : System
return System

StructureElementIsInherited() public method

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

ValidBinaryOperation() public method

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
return bool