class UtilityNode : public Node

A UtilityNode represents a utility function

Inheritance:


Public Methods

void addParent(DiscreteChanceNode *parent) throw( HAPI::ExceptionHugin )
Add parent as a new parent of this node
void addParent(DiscreteDecisionNode *parent) throw( HAPI::ExceptionHugin )
Add parent as a new parent of this node
Table* getTable() throw(HAPI::ExceptionHugin)
Return the table associated with this node
void removeParent(DiscreteChanceNode *parent) throw( HAPI::ExceptionHugin )
Remove the directed link between parent and this node
void removeParent(DiscreteDecisionNode *parent) throw( HAPI::ExceptionHugin )
Remove the directed link between parent and this node

Inherited from Node:

Public Methods

std::string getAttribute(std::string& key) const throw(HAPI::ExceptionHugin)
virtual Category getCategory() throw()
Domain* getDomain() const throw(HAPI::ExceptionHugin)
JunctionTree* getJunctionTree() const throw(HAPI::ExceptionHugin)
virtual Kind getKind() throw(ExceptionHugin)
std::string getLabel() const throw(HAPI::ExceptionHugin)
Model* getModel() throw(HAPI::ExceptionHugin)
std::string getName() const throw(HAPI::ExceptionHugin)
NodeList getParents() const throw(HAPI::ExceptionHugin)
std::pair <long, long> getPosition() const throw(HAPI::ExceptionHugin)
void* getUserData() throw(HAPI::ExceptionHugin)
Constraint getEdgeConstraint( Node *bNode )
void setEdgeConstraint( Node *bNode, Constraint C )
void generateTable() throw(HAPI::ExceptionHugin )
std::vector <Attribute*> Node::getAttributes() throw(HAPI::ExceptionHugin )
void setAttribute(std::string& key, std::string& value) throw(HAPI::ExceptionHugin)
void setLabel(char* label) throw(HAPI::ExceptionHugin)
void setLabel(std::string& label) throw(HAPI::ExceptionHugin)
void setName(char *name) throw(HAPI::ExceptionHugin)
void setName(std::string& name) throw(HAPI::ExceptionHugin)
void setPosition(long x, long y) throw(HAPI::ExceptionHugin)
void setPosition(std::pair<long, long> pos) throw(HAPI::ExceptionHugin)
void setUserData(void *) throw(HAPI::ExceptionHugin)
Domain* getHomeDomain() const throw(ExceptionHugin)
Class* getHomeClass() const throw(ExceptionHugin)
void addToInputs() throw(ExceptionHugin)
void addToOutputs() throw(ExceptionHugin)
void removeFromInputs() throw(ExceptionHugin)
void removeFromOutputs() throw(ExceptionHugin)
Node* getInstance() throw(ExceptionHugin)
Node* getMaster() throw(ExceptionHugin)
NodeList getSource() throw(ExceptionHugin)

Documentation

A UtilityNode represents a utility function. The utility function can depend on discrete chance and decision Nodes.

UtilityNodes are used in influence diagrams to represent utilities associated with decision options.

void addParent(DiscreteChanceNode *parent) throw( HAPI::ExceptionHugin )
Add parent as a new parent of this node. That is, add a directed link from parent to this node.

Parameters:
parent - DiscreteChanceNode*

void addParent(DiscreteDecisionNode *parent) throw( HAPI::ExceptionHugin )
Add parent as a new parent of this node. That is, add a directed link from parent to this node.

Parameters:
parent - DiscreteDecisionNode*

Table* getTable() throw(HAPI::ExceptionHugin)
Return the table associated with this node. The table contains a utility value for every configuration of the parents of this node. The set of nodes associated with the table will be the (discrete) parents of this node in unspecified order.

Returns:
Pointer to Table containing utility values.

void removeParent(DiscreteChanceNode *parent) throw( HAPI::ExceptionHugin )
Remove the directed link between parent and this node. The table (if any) will be updated such that the updated table will be the portion of the old table that corresponds to parent being in its first state.

Parameters:
param - pointer to the DiscreteChanceNode that will be removed as parent.

void removeParent(DiscreteDecisionNode *parent) throw( HAPI::ExceptionHugin )
Remove the directed link between parent and this node. The table (if any) will be updated such that the updated table will be the portion of the old table that corresponds to parent being in its first state.

Parameters:
param - pointer to the DiscreteDecisionNode that will be removed as parent.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de