All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.takumin.simplesgfparser.entity.Sequence Maven / Gradle / Ivy

The newest version!
package com.github.takumin.simplesgfparser.entity;

import java.util.ArrayList;
import java.util.List;
import lombok.Getter;

/**
 * EBNF:
 *  Sequence = Node { Node }
 * @author takumi
 */
public class Sequence {
    @Getter
    private List nodes;

    public Sequence() {
        nodes = new ArrayList<>();
    }

    /**
     * Appends the specified GameTree to this sequence.
     * 
     * @param node node to be appended to this sequence
     */
    public void addNode(Node node) {
        nodes.add(node);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy