IGateBinding Class Reference

#include <Ca.h>

Inheritance diagram for IGateBinding:

Inheritance graph
[legend]

List of all members.


Detailed Description

Interface to define a binding between simulated gate and designed CA.

Definition at line 208 of file Ca.h.


Public Member Functions

virtual ~IGateBinding ()
virtual IGateBindingclone () const =0
 Each final derivation of IGateBinding has to override this method with self-cloning method to keep the simulator working.
virtual void setInput (CaState &state, TBus in) const =0
 Projection of given input to CA's state referred.
virtual void setOutput (CaState &state, TBus out) const =0
 Projection of given output to CA's state referred.
virtual TBus getOutput (const CaState &state) const =0
 Gather gate's output from CA's state.

Constructor & Destructor Documentation

virtual ~IGateBinding (  )  [inline, virtual]

Definition at line 210 of file Ca.h.


Member Function Documentation

virtual IGateBinding* clone (  )  const [pure virtual]

Each final derivation of IGateBinding has to override this method with self-cloning method to keep the simulator working.

If you find a way how to do it generically at the top level, please send a patch to nucad@dudka.cz.

Implemented in BindInput, and BindOutput.

Referenced by CaEvaluator::CaEvaluator().

Here is the caller graph for this function:

virtual void setInput ( CaState state,
TBus  in 
) const [pure virtual]

Projection of given input to CA's state referred.

Parameters:
state CA state being changed.
in Input ought to be passed to CA state.

Implemented in BindInput.

Referenced by CaEvaluator::cntSteps(), CaEvaluator::eval(), and CaEvaluator::simulate().

Here is the caller graph for this function:

virtual void setOutput ( CaState state,
TBus  out 
) const [pure virtual]

Projection of given output to CA's state referred.

Note:
Currently used only by visualizer.
Parameters:
state CA state being changed.
out Output ought to be passed to CA state.

Implemented in BindOutput.

Referenced by CaEvaluator::simulate().

Here is the caller graph for this function:

virtual TBus getOutput ( const CaState state  )  const [pure virtual]

Gather gate's output from CA's state.

Parameters:
state CA's state to read output from.
Returns:
Return the gathered gate's output.

Implemented in BindOutput.

Referenced by CaEvaluator::cntSteps(), and CaEvaluator::eval().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Generated on Sat May 2 16:39:39 2009 for nucad by  doxygen 1.5.4