summaryrefslogtreecommitdiff
path: root/SA_POP/SANet/SANet.h
diff options
context:
space:
mode:
Diffstat (limited to 'SA_POP/SANet/SANet.h')
-rw-r--r--SA_POP/SANet/SANet.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/SA_POP/SANet/SANet.h b/SA_POP/SANet/SANet.h
index d0bbc5fe4aa..130b6806fc9 100644
--- a/SA_POP/SANet/SANet.h
+++ b/SA_POP/SANet/SANet.h
@@ -198,7 +198,7 @@ namespace SANet {
/// changed after construction.
virtual void reset_sa (void);
- /// Update a condition's current value (probability of being true).
+ /// Update a condition's current (init) value (probability of being true).
/**
* @param cond_id The condition id.
*
@@ -206,6 +206,12 @@ namespace SANet {
*/
virtual void update_cond_val (CondID cond_id, Probability true_prob);
+ /// Update a set of conditions' current (init) value (probability of being true).
+ /**
+ * @param true_prob Set of conditions with each including the value to set for current/init value.
+ */
+ virtual void update_conds_val (CondSet conds);
+
/// Update a condition's (goal) utility.
/**
* @param cond_id The condition id.
@@ -273,6 +279,30 @@ namespace SANet {
// General task/condition accessor methods.
// ************************************************************************
+ /// Get the number of conditions in the network.
+ /**
+ * @return Number of conditions in the network.
+ */
+ virtual size_t get_num_conds (void);
+
+ /// Get all conditions in the network.
+ /**
+ * @return Set of all conditions in the network.
+ */
+ virtual CondSet get_all_conds (void);
+
+ /// Get the number of tasks in the network.
+ /**
+ * @return Number of tasks in the network.
+ */
+ virtual size_t get_num_tasks (void);
+
+ /// Get all tasks in the network.
+ /**
+ * @return Set of all tasks (as IDs) in the network.
+ */
+ virtual TaskSet get_all_tasks (void);
+
/// Get a task's name.
/**
* @param task_id The task id.