DSL_truthTable

<< Click to Display Table of Contents >>

Navigation:  Reference Manual > Node definitions >

DSL_truthTable

Header file: deftruthtable.h

class DSL_truthTable : public DSL_cpt

DSL_truthTable is a specialization of DSL_cpt, maintaining a deterministic CPT containing only zeros and ones.


virtual int GetType() const;

Overridden method from DSL_nodeDef. Returns DSL_TRUTHTABLE.


virtual const char* GetTypeName() const;

Overridden method from DSL_nodeDef. Returns "TRUTHTABLE".


int GetResultingStates(DSL_intArray& states) const;

int GetResultingStates(DSL_stringArray& states) const;

Fill the output array with indices or identifiers of resulting states. Returns DSL_OKAY on success, or a negative error code on failure.


int SetResultingStates(const DSL_stringArray& states);

int SetResultingStates(const DSL_intArray& states);

Set the resulting states using state indices or identifiers. Fail when the size of states array is not equal to the number of columns in the truth table, or when the elements of the array do not correspond to the node outcomes. Returns DSL_OKAY on success, or a negative error code on failure.


int GetTemporalResultingStates(int order, DSL_intArray &states) const;

For a plate node in a DBN, gets the resulting states for a specified temporal order. Returns DSL_OKAY on success, or a negative error code on failure.


int SetTemporalResultingStates(int order, const int* states);

For a plate node in a DBN, sets the resulting states for a specified temporal order. Returns DSL_OKAY on success, or a negative error code on failure.