Struct dsntk_model::DecisionTable
source · 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 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 copy 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
Implementation of 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 PartialEq for DecisionTable
impl PartialEq for DecisionTable
source§fn eq(&self, other: &DecisionTable) -> bool
fn eq(&self, other: &DecisionTable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DecisionTable
impl StructuralEq for DecisionTable
impl StructuralPartialEq for DecisionTable
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.