Research Article

An Algorithm for Generating Boolean Expressions in VHDL Based on Ladder Diagrams

Algorithm 2

public class AndNode:  Node  {
    List<Node> children; // stores the child nodes of this AND-node
    ⋯
}.
And,
public class OrNode:  Node  {
    List<Node> children; // stores the child nodes of this OR-node
    ⋯
}.