algo_not: algo_not (R6 class)

Description Usage Arguments Format Value Graph Truth table Examples

Description

The NOT logical algorithm implemented as a NAND-composite. In practice, since NOT has the truthtable 1,0, this class inherits from Algo10.

Usage

1

Arguments

algo_id

A technical unique identifier for the algorithmic node. If missing, a GUID will be created. (character)

label

A meaningful label for the algorithmic node. Keep it short to let it display properly on graph plots. Default: "NAND". (character)

...

For future usage.

Format

An object of class R6ClassGenerator of length 24.

Value

An object instance of class algo_not:algo_10:algo_composite:algo_base.

Graph

Graph of the algorithm

Truth table

input output
0 1
1 0

Examples

1
2
3
a <- algo_not$new();
a$plot();
a$exec("1");

daviddoret/haricot documentation built on May 21, 2019, 1:42 a.m.