|
anpcpp 0.1.0
Analytic Network Process computational library
|
A decision element within a cluster (may own a subnetwork). More...
#include <network.hpp>
Public Member Functions | |
| AnpNode (AnpNetwork *network, AnpCluster *cluster, std::string name) | |
| Constructs a node (normally called via AnpCluster::add_node). | |
| const std::string & | name () const noexcept |
| const std::string & | description () const noexcept |
| void | set_description (std::string description) |
| Sets the node description. | |
| AnpCluster * | cluster () const noexcept |
| AnpNetwork * | network () const noexcept |
| bool | invert () const noexcept |
| void | set_invert (bool value) |
| Sets invert flag for subnet synthesis. | |
| void | connect_to (AnpNode *dest) |
| Creates node-to-node connection (and cluster-level link). | |
| void | disconnect_from (AnpNode *dest) |
Removes connection to dest. | |
| bool | is_connected_to (const AnpNode *dest) const |
| bool | is_connected_to_cluster (const std::string &cluster_name) const |
| PairwiseJudgments * | node_pairwise (const std::string &dest_cluster) |
| Pairwise judgments of this node w.r.t. | |
| const PairwiseJudgments * | node_pairwise (const std::string &dest_cluster) const |
| Const overload of node_pairwise. | |
| RatingsPrioritizer * | node_ratings (const std::string &dest_cluster) |
| Ratings judgments of this node w.r.t. | |
| const RatingsPrioritizer * | node_ratings (const std::string &dest_cluster) const |
| Const overload of node_ratings. | |
| NodePrioritizerKind | node_prioritizer_kind (const std::string &dest_cluster) const |
Prioritizer kind for dest_cluster. | |
| void | set_node_prioritizer_kind (const std::string &dest_cluster, NodePrioritizerKind kind) |
Sets prioritizer kind for an existing link to dest_cluster. | |
| NodePrioritizerSlot * | node_prioritizer (const std::string &dest_cluster) |
Mutable prioritizer slot for dest_cluster, if present. | |
| const NodePrioritizerSlot * | node_prioritizer (const std::string &dest_cluster) const |
| Const overload of node_prioritizer. | |
| Vector | unscaled_column () const |
| Column of the unscaled supermatrix for this node. | |
| AnpNetwork * | subnetwork () const noexcept |
| bool | has_subnetwork () const noexcept |
| AnpNetwork & | ensure_subnetwork () |
| Creates subnetwork if absent and returns it. | |
A decision element within a cluster (may own a subnetwork).
| anpcpp::AnpNode::AnpNode | ( | AnpNetwork * | network, |
| AnpCluster * | cluster, | ||
| std::string | name | ||
| ) |
Constructs a node (normally called via AnpCluster::add_node).
| network | Owning network. |
| cluster | Parent cluster. |
| name | Node name (unique within the network). |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| bool anpcpp::AnpNode::is_connected_to | ( | const AnpNode * | dest | ) | const |
dest. | bool anpcpp::AnpNode::is_connected_to_cluster | ( | const std::string & | cluster_name | ) | const |
cluster_name.
|
inlinenoexcept |
|
inlinenoexcept |
| PairwiseJudgments * anpcpp::AnpNode::node_pairwise | ( | const std::string & | dest_cluster | ) |
Pairwise judgments of this node w.r.t.
nodes in dest_cluster.
| NodePrioritizerSlot * anpcpp::AnpNode::node_prioritizer | ( | const std::string & | dest_cluster | ) |
Mutable prioritizer slot for dest_cluster, if present.
| NodePrioritizerKind anpcpp::AnpNode::node_prioritizer_kind | ( | const std::string & | dest_cluster | ) | const |
Prioritizer kind for dest_cluster.
| std::out_of_range | if there is no link to that cluster. |
| RatingsPrioritizer * anpcpp::AnpNode::node_ratings | ( | const std::string & | dest_cluster | ) |
Ratings judgments of this node w.r.t.
nodes in dest_cluster.
| void anpcpp::AnpNode::set_node_prioritizer_kind | ( | const std::string & | dest_cluster, |
| NodePrioritizerKind | kind | ||
| ) |
Sets prioritizer kind for an existing link to dest_cluster.
| std::out_of_range | if there is no link to that cluster. |
|
inlinenoexcept |
| Vector anpcpp::AnpNode::unscaled_column | ( | ) | const |
Column of the unscaled supermatrix for this node.