Class Decision
- Namespace
- C4.Net.Documentation
- Assembly
- C4.Net.Core.dll
Represents a single (architecture) decision, as described at http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions
[DataContract]
public sealed class Decision
- Inheritance
-
Decision
- Inherited Members
Properties
Content
Contains the decision body in the configured markup format.
[DataMember(Name = "content", EmitDefaultValue = false)]
public string Content { get; }
Property Value
Date
Records when the decision was made.
[DataMember(Name = "date", EmitDefaultValue = false)]
public DateTime Date { get; }
Property Value
Element
References the model element that owns this decision, when the decision is scoped below the workspace.
public Element Element { get; }
Property Value
ElementId
The ID of the element.
[DataMember(Name = "elementId", EmitDefaultValue = false)]
public string ElementId { get; set; }
Property Value
Format
Describes the markup format used by Content.
[DataMember(Name = "format", EmitDefaultValue = true)]
public Format Format { get; }
Property Value
Id
Uniquely identifies the decision within its scope.
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; }
Property Value
Status
Indicates the lifecycle state of the decision.
[DataMember(Name = "status", EmitDefaultValue = true)]
public DecisionStatus Status { get; }
Property Value
Title
Supplies the short human-readable title for the decision.
[DataMember(Name = "title", EmitDefaultValue = false)]
public string Title { get; }
Property Value
Methods
Equals(Decision)
Determines whether another decision has the same scope and identifier.
public bool Equals(Decision decision)
Parameters
decisionDecisionThe decision to compare with this instance.
Returns
- bool
truewhen both decisions refer to the same element scope and identifier; otherwise,false.
Equals(object)
Determines whether another object represents the same decision.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with this instance.
Returns
GetHashCode()
Computes a hash code from the scoped decision identifier.
public override int GetHashCode()
Returns
- int
A hash code suitable for decision set membership.