model_thread = new Thread(get_next_id());
add_thread(model_thread);
scheduler->register_engine(this);
+ node_stack->register_engine(this);
}
/** @brief Destructor */
#include "model.h"
#include "threads-model.h"
#include "modeltypes.h"
+#include "execution.h"
/**
* @brief Node constructor
delete node_list[i];
}
+/**
+ * @brief Register the model-checker object with this NodeStack
+ * @param exec The execution structure for the ModelChecker
+ */
+void NodeStack::register_engine(const ModelExecution *exec)
+{
+ this->execution = exec;
+}
+
void NodeStack::print() const
{
model_print("............................................\n");
public:
NodeStack();
~NodeStack();
+
+ void register_engine(const ModelExecution *exec);
+
ModelAction * explore_action(ModelAction *act, enabled_type_t * is_enabled);
Node * get_head() const;
Node * get_next() const;
private:
node_list_t node_list;
+ /** @brief The model-checker execution object */
+ const ModelExecution *execution;
+
/**
* @brief the index position of the current head Node
*