aboutsummaryrefslogtreecommitdiff
path: root/Node.h
diff options
context:
space:
mode:
Diffstat (limited to 'Node.h')
-rw-r--r--Node.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Node.h b/Node.h
index 34e1895..3cc166e 100644
--- a/Node.h
+++ b/Node.h
@@ -19,13 +19,15 @@ public:
public:
//! alias to \p sim() for Observer
void update();
+ //! add input to node
virtual void addInput(Net *);
+ //! set output net
virtual void setOutput(Net *);
- //! validate and simulate
+ //! simulate node behavior (calculate new level and notify outputs)
virtual void sim();
public:
- //! logical implementation of the node/gate
+ //! calculate the new logic level
virtual SignalLevel level() = 0;
protected: