pub struct DecisionTable { /* private fields */ }
Expand description
Decision table.
Implementations§
Source§impl DecisionTable
impl DecisionTable
Sourcepub fn new(
information_item_name: Option<String>,
input_clauses: Vec<InputClause>,
output_clauses: Vec<OutputClause>,
annotations: Vec<RuleAnnotationClause>,
rules: Vec<DecisionRule>,
hit_policy: HitPolicy,
aggregation: Option<BuiltinAggregator>,
preferred_orientation: DecisionTableOrientation,
output_label: Option<String>,
) -> Self
pub fn new( information_item_name: Option<String>, input_clauses: Vec<InputClause>, output_clauses: Vec<OutputClause>, annotations: Vec<RuleAnnotationClause>, rules: Vec<DecisionRule>, hit_policy: HitPolicy, aggregation: Option<BuiltinAggregator>, preferred_orientation: DecisionTableOrientation, output_label: Option<String>, ) -> Self
Creates a new decision table.
Sourcepub fn information_item_name(&self) -> &Option<String>
pub fn information_item_name(&self) -> &Option<String>
Returns the information item name.
Sourcepub fn input_clauses(&self) -> Iter<'_, InputClause>
pub fn input_clauses(&self) -> Iter<'_, InputClause>
Returns an iterator over input clauses.
Sourcepub fn output_clauses(&self) -> Iter<'_, OutputClause>
pub fn output_clauses(&self) -> Iter<'_, OutputClause>
Returns an iterator over output clauses.
Sourcepub fn annotations(&self) -> Iter<'_, RuleAnnotationClause>
pub fn annotations(&self) -> Iter<'_, RuleAnnotationClause>
Returns an iterator over annotations.
Sourcepub fn rules(&self) -> Iter<'_, DecisionRule>
pub fn rules(&self) -> Iter<'_, DecisionRule>
Returns an iterator over the rules.
Sourcepub fn hit_policy(&self) -> HitPolicy
pub fn hit_policy(&self) -> HitPolicy
Returns the HitPolicy of this decision table.
Sourcepub fn aggregation(&self) -> &Option<BuiltinAggregator>
pub fn aggregation(&self) -> &Option<BuiltinAggregator>
Returns the aggregation when the HitPolicy is COLLECT
.
Sourcepub fn preferred_orientation(&self) -> &DecisionTableOrientation
pub fn preferred_orientation(&self) -> &DecisionTableOrientation
Returns preferred orientation for this decision table.
Sourcepub fn output_label(&self) -> &Option<String>
pub fn output_label(&self) -> &Option<String>
Return an output label.
Sourcepub fn allowed_values_present(&self) -> bool
pub fn allowed_values_present(&self) -> bool
Returns true
when allowed input and/or allowed output values are present in decision table.
Trait Implementations§
Source§impl Clone for DecisionTable
impl Clone for DecisionTable
Source§fn clone(&self) -> DecisionTable
fn clone(&self) -> DecisionTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DecisionTable
impl Debug for DecisionTable
Source§impl Display for DecisionTable
impl Display for DecisionTable
Source§impl DmnElement for DecisionTable
impl DmnElement for DecisionTable
Source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
Name of the model the element was defined in.
Source§fn id(&self) -> &String
fn id(&self) -> &String
Returns a reference to identifier for this DmnElement.
This identifier SHALL be unique within its containing Definitions element.
Source§fn opt_id(&self) -> Option<&String>
fn opt_id(&self) -> Option<&String>
Returns a reference to optional identifier for this DmnElement.
Source§fn description(&self) -> &Option<String>
fn description(&self) -> &Option<String>
Returns reference to optional description of this DmnElement.
Source§fn label(&self) -> &Option<String>
fn label(&self) -> &Option<String>
Returns reference to optional alternative short description of this DmnElement.
Source§fn extension_elements(&self) -> &Vec<ExtensionElement>
fn extension_elements(&self) -> &Vec<ExtensionElement>
Returns reference to attached additional elements to any DmnElement.
Source§fn extension_attributes(&self) -> &Vec<ExtensionAttribute>
fn extension_attributes(&self) -> &Vec<ExtensionAttribute>
Returns reference to attached named extended attributes and model associations to any DmnElement.
Source§impl Expression for DecisionTable
impl Expression for DecisionTable
Source§impl From<DecisionTable> for DecisionTable
impl From<DecisionTable> for DecisionTable
Source§fn from(value: RecognizedDecisionTable) -> Self
fn from(value: RecognizedDecisionTable) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DecisionTable
impl PartialEq for DecisionTable
impl Eq for DecisionTable
impl StructuralPartialEq for DecisionTable
Auto Trait Implementations§
impl Freeze for DecisionTable
impl RefUnwindSafe for DecisionTable
impl Send for DecisionTable
impl Sync for DecisionTable
impl Unpin for DecisionTable
impl UnwindSafe for DecisionTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.