C# 클래스 DataDictionary.Specification.Paragraph

상속: Generated.Paragraph, IHoldsParagraphs
파일 보기 프로젝트 열기: ERTMSSolutions/ERTMSFormalSpecs 1 사용 예제들

공개 메소드들

메소드 설명
AddModelElement ( IModelElement element ) : void

Adds a model element in this model element

AddTypeSpec ( TypeSpec aTypeSpec ) : void

Adds a type spec to a paragraph

AppendToRequirementSet ( RequirementSet requirementSet ) : bool

Appends this paragraph to the requirement set if it does not belong to it already

BelongsToRequirementSet ( RequirementSet requirementSet ) : bool

Indicates whether this paragraphs belongs to the functionam block whose name is provided as parameter

ChangeType ( acceptor originalType, acceptor targetType ) : void

Changes the type of the paragraph if the paragraph type is the original type

CompareTo ( IModelElement other ) : int
CreateDefault ( ArrayList enclosingCollection, string enclosingId ) : Paragraph

Creates a default element

CreateParagraphSetMetrics ( List paragraphs ) : ParagraphSetMetrics

Creates the stat message according to the list of paragraphs provided

CreateParagraphSetStatus ( List paragraphs ) : string

Creates the status string for a set of paragraphs

CreateParagraphUpdate ( Dictionary dictionary ) : Paragraph

Creates an update for this paragraph in the provided dictionary.

CreateStatusMessage ( ) : string

Creates the status message

Delete ( ) : void

Also removes the req refs to that paragraph

FillCollection ( List retVal ) : void

Fills the collection of paragraphs with this paragraph, and the sub paragraphs

FindEnclosingChapter ( ) : Chapter

Finds the chapter enclosing this paragraph

FindEnclosingSpecification ( ) : Specification

Finds the specification enclosing this paragraph

FindParagraph ( String id, bool create ) : Paragraph

Looks for a specific paragraph

GetFirstOrderSubParagraphs ( ) : List

Provides all one-step-sub-paragraphs of this paragraph.

GetNewSubParagraphId ( bool letter ) : string

The sub paragraphs of this paragraph

GetParagraphs ( List retVal ) : void

Worker for get sub paragraphs

GetSubParagraphs ( ) : List

Provides all sub paragraphs of this paragraph

HasApplicableFirstOrderSubParagraphs ( ) : bool

Tells wheher the paragraph contains at least one first order subparagraph which is Applicable, i.e. an implemented requirement.

HasApplicableSubParagraphs ( ) : bool

Tells wheher the paragraph contains at least one subparagraph in all its descendants which is Applicable, i.e. an implemented requirement.

IsApplicable ( ) : bool
RestructureName ( ) : void

Restructures the name of this paragraph

SetType ( acceptor type ) : void
SubParagraphBelongsToRequirementSet ( RequirementSet requirementSet ) : bool

비공개 메소드들

메소드 설명
ConsiderInMetrics ( ) : bool

Indicates that the paragraph should be considered while computing metrics that is, if the paragraph is related to a requirements set with "Applicable" flag set to true

FillApplicableRequirementSets ( HashSet applicableRequirementSets ) : void

Provides the list of applicable requirement sets

GenerateDefaultParagraphID ( ArrayList enclosingCollection ) : string

Generates the ID for a default element.

메소드 상세

AddModelElement() 공개 메소드

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

AddTypeSpec() 공개 메소드

Adds a type spec to a paragraph
public AddTypeSpec ( TypeSpec aTypeSpec ) : void
aTypeSpec TypeSpec The type spec to add
리턴 void

AppendToRequirementSet() 공개 메소드

Appends this paragraph to the requirement set if it does not belong to it already
public AppendToRequirementSet ( RequirementSet requirementSet ) : bool
requirementSet RequirementSet
리턴 bool

BelongsToRequirementSet() 공개 메소드

Indicates whether this paragraphs belongs to the functionam block whose name is provided as parameter
public BelongsToRequirementSet ( RequirementSet requirementSet ) : bool
requirementSet RequirementSet
리턴 bool

ChangeType() 공개 메소드

Changes the type of the paragraph if the paragraph type is the original type
public ChangeType ( acceptor originalType, acceptor targetType ) : void
originalType DataDictionary.Generated.acceptor The type of the paragraph which should be matched
targetType DataDictionary.Generated.acceptor When the originalType is matched, the new type to set
리턴 void

CompareTo() 공개 메소드

public CompareTo ( IModelElement other ) : int
other IModelElement
리턴 int

CreateDefault() 공개 정적인 메소드

Creates a default element
public static CreateDefault ( ArrayList enclosingCollection, string enclosingId ) : Paragraph
enclosingCollection System.Collections.ArrayList
enclosingId string
리턴 Paragraph

CreateParagraphSetMetrics() 공개 정적인 메소드

Creates the stat message according to the list of paragraphs provided
public static CreateParagraphSetMetrics ( List paragraphs ) : ParagraphSetMetrics
paragraphs List
리턴 ParagraphSetMetrics

CreateParagraphSetStatus() 공개 정적인 메소드

Creates the status string for a set of paragraphs
public static CreateParagraphSetStatus ( List paragraphs ) : string
paragraphs List
리턴 string

CreateParagraphUpdate() 공개 메소드

Creates an update for this paragraph in the provided dictionary.
public CreateParagraphUpdate ( Dictionary dictionary ) : Paragraph
dictionary Dictionary The dictionary to put the updated paragraph in
리턴 Paragraph

CreateStatusMessage() 공개 메소드

Creates the status message
public CreateStatusMessage ( ) : string
리턴 string

Delete() 공개 메소드

Also removes the req refs to that paragraph
public Delete ( ) : void
리턴 void

FillCollection() 공개 메소드

Fills the collection of paragraphs with this paragraph, and the sub paragraphs
public FillCollection ( List retVal ) : void
retVal List
리턴 void

FindEnclosingChapter() 공개 메소드

Finds the chapter enclosing this paragraph
public FindEnclosingChapter ( ) : Chapter
리턴 Chapter

FindEnclosingSpecification() 공개 메소드

Finds the specification enclosing this paragraph
public FindEnclosingSpecification ( ) : Specification
리턴 Specification

FindParagraph() 공개 메소드

Looks for a specific paragraph
public FindParagraph ( String id, bool create ) : Paragraph
id String The id of the paragraph to find
create bool If true, creates the paragraph tree if needed
리턴 Paragraph

GetFirstOrderSubParagraphs() 공개 메소드

Provides all one-step-sub-paragraphs of this paragraph.
public GetFirstOrderSubParagraphs ( ) : List
리턴 List

GetNewSubParagraphId() 공개 메소드

The sub paragraphs of this paragraph
public GetNewSubParagraphId ( bool letter ) : string
letter bool Indicates that the paragraph id should be terminated by a letter
리턴 string

GetParagraphs() 공개 메소드

Worker for get sub paragraphs
public GetParagraphs ( List retVal ) : void
retVal List
리턴 void

GetSubParagraphs() 공개 메소드

Provides all sub paragraphs of this paragraph
public GetSubParagraphs ( ) : List
리턴 List

HasApplicableFirstOrderSubParagraphs() 공개 메소드

Tells wheher the paragraph contains at least one first order subparagraph which is Applicable, i.e. an implemented requirement.
public HasApplicableFirstOrderSubParagraphs ( ) : bool
리턴 bool

HasApplicableSubParagraphs() 공개 메소드

Tells wheher the paragraph contains at least one subparagraph in all its descendants which is Applicable, i.e. an implemented requirement.
public HasApplicableSubParagraphs ( ) : bool
리턴 bool

IsApplicable() 공개 메소드

public IsApplicable ( ) : bool
리턴 bool

RestructureName() 공개 메소드

Restructures the name of this paragraph
public RestructureName ( ) : void
리턴 void

SetType() 공개 메소드

public SetType ( acceptor type ) : void
type DataDictionary.Generated.acceptor
리턴 void

SubParagraphBelongsToRequirementSet() 공개 메소드

public SubParagraphBelongsToRequirementSet ( RequirementSet requirementSet ) : bool
requirementSet RequirementSet
리턴 bool