File size: 2,423 Bytes
5070096 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
standard library package ModelingMetadata {
doc
/*
* This package contains definitions of metadata generally useful for annotating models.
*/
private import Base::Anything;
private import ScalarValues::String;
private import RiskMetadata::Risk;
enum def StatusKind {
doc
/*
* StatusKind enumerates the possible statuses of work on a model element.
*/
open {
doc
/*
* Status is open.
*/
}
tbd {
doc
/*
* Status is to be determined.
*/
}
tbr {
doc
/*
* Status is to be resolved.
*/
}
tbc {
doc
/*
* Status is to be confirmed.
*/
}
done {
doc
/*
* Status is done.
*/
}
closed {
doc
/*
* Status is closed.
*/
}
}
metadata def StatusInfo {
doc
/*
* StatusInfo is used to annotate a model element with status information.
*/
attribute originator : String [0..1] {
doc
/*
* The originator of the annotated element.
*/
}
attribute owner : String [0..1] {
doc
/*
* The current owner of the annotated element.
*/
}
attribute status : StatusKind {
doc
/*
* The current status of work on the annotated element (required).
*/
}
item risk : Risk [0..1] {
doc
/*
* An assessment of risk for the annotated element.
*/
}
}
metadata def Rationale {
doc
/*
* Rationale is used to explain a choice or other decision made related to the
* annotated element.
*/
attribute text : String {
doc
/*
* A textual description of the rationale (required).
*/
}
ref explanation : Anything [0..1] {
doc
/*
* A reference to a feature that provides a formal explanation of the rationale.
* (For example, a trade study whose result explains the choice of a certain alternative).
*/
}
}
metadata def Issue {
doc
/*
* Issue is used to record some issue concerning the annotated element.
*/
attribute text : String {
doc
/*
* A textual description of the issue.
*/
}
}
metadata def <refinement> Refinement {
doc
/*
* Refinement is used to identify a dependency as modeling a refinement relationship.
* In such a relationship, the source elements of the relationship provide a more precise and/or
* accurate representation than the target elements.
*/
:>> annotatedElement : SysML::Dependency;
}
} |