anpcpp 0.1.0
Analytic Network Process computational library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
anpcpp::NodePrioritizerSlot Struct Reference

Stores either pairwise or ratings judgments for one dest cluster. More...

#include <network.hpp>

Public Member Functions

const std::vector< std::string > & alternatives () const
 
bool empty () const
 
bool has_alternative (const std::string &name) const
 
void add_alternative (const std::string &name, bool ignore_existing=false)
 Adds name to the active prioritizer.
 
void remove_alternative (const std::string &name, bool ignore_missing=false)
 Removes name from the active prioritizer.
 
Vector priorities () const
 
void set_kind (NodePrioritizerKind new_kind)
 Switches kind, preserving the alternative name list.
 

Detailed Description

Stores either pairwise or ratings judgments for one dest cluster.

Member Function Documentation

◆ alternatives()

const std::vector< std::string > & anpcpp::NodePrioritizerSlot::alternatives ( ) const
Returns
Alternative names from the active prioritizer.

◆ empty()

bool anpcpp::NodePrioritizerSlot::empty ( ) const
Returns
True if the active prioritizer has no alternatives.

◆ has_alternative()

bool anpcpp::NodePrioritizerSlot::has_alternative ( const std::string &  name) const
Returns
True if name is an alternative in the active prioritizer.

◆ priorities()

Vector anpcpp::NodePrioritizerSlot::priorities ( ) const
Returns
Local priorities for the unscaled column.

◆ set_kind()

void anpcpp::NodePrioritizerSlot::set_kind ( NodePrioritizerKind  new_kind)

Switches kind, preserving the alternative name list.

Pairwise is reset to an identity diagonal; ratings start empty with numeric + Identity interpreter.


The documentation for this struct was generated from the following file: