1 #ifndef _MADARA_COMPOSITE_AND_NODE_H_ 2 #define _MADARA_COMPOSITE_AND_NODE_H_ 4 #ifndef _MADARA_NO_KARL_ 67 #endif // _MADARA_NO_KARL_ 69 #endif // _MADARA_COMPOSITE_AND_NODE_H_ This class encapsulates an entry in a KnowledgeBase.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
CompositeAndNode(logger::Logger &logger, const ComponentNodes &nodes)
Constructor.
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Provides knowledge logging services to files and terminals.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.
A multi-threaded logger for logging to one or more destinations.
A composite node that performs a logical and.
Abstract base class for all visitors to all classes that derive from ComponentNode.
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.