Class Strategy
java.lang.Object
ca.mcscert.jpipe.model.elements.Strategy
- All Implemented Interfaces:
CommonElement, ElementView, JustificationElement
A reasoning strategy connecting evidence to a conclusion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSupport(SupportLeaf supporter) Addssupporterto this strategy.id()Unique identifier of this element within its containing model.kind()The kebab-case name of this element's kind, as used in user-facing output:conclusion,sub-conclusion,strategy,evidence,abstract-support.label()Human-readable display label.voidreplaceSupport(SupportLeaf oldSupport, SupportLeaf newSupport) Replaces the supporter sharingoldSupport's id withnewSupport.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface JustificationElement
accept
-
Constructor Details
-
Strategy
-
-
Method Details
-
id
Description copied from interface:ElementViewUnique identifier of this element within its containing model.- Specified by:
idin interfaceElementView
-
label
Description copied from interface:ElementViewHuman-readable display label.- Specified by:
labelin interfaceElementView
-
kind
Description copied from interface:JustificationElementThe kebab-case name of this element's kind, as used in user-facing output:conclusion,sub-conclusion,strategy,evidence,abstract-support.- Specified by:
kindin interfaceJustificationElement- Returns:
- the kind name of this element.
-
addSupport
Addssupporterto this strategy. A strategy can never legitimately be supported twice by the same element id, so the call is idempotent by id: if a supporter with the same id is already present, nothing is added. -
getSupports
-
replaceSupport
Replaces the supporter sharingoldSupport's id withnewSupport. Matching is by id rather than object identity so that anAbstractSupportplaceholder can be swapped for the concrete element that overrides it (both share the same qualified id but are different objects and types). -
toString
-