src/main/java/com/ve/cxe/commons/ai/Thought.java
/**
     * BackPressure is a potential solution to make this efficient / fast
     *
     * @param thought
     * @param thoughtStream
     * @param index
     */
BackPressure is a potential solution to make this efficient / fast
@param thought
@param thoughtStream
@param index
BackPressure is a potential solution to make this efficient / fast @param thought @param thoughtStream @param index
public boolean addRelation(String thought, String thoughtStream[], int index) {
        Thought childThought;
        String relation;
        boolean backPressure = false;
        if (ThoughtFactory.relations.contains(thought)) {
            relation = thought;
            childThought = new Thought(thoughtStream[index + 1]);
            backPressure = true;
        } else {
            relation = "unknown";
            childThought = new Thought(thought);
        }
        childThought.rank = this.rank + children.size(); 
        childThought.parent = this;
        Relation r = new Relation(relation, childThought);
        children.put(relation, r);
        return backPressure;
    }
public boolean addRelation ( String thought , String thoughtStream [ ] , int index ) { Thought childThought ; String relation ; boolean backPressure = false ; if ( ThoughtFactory . relations . contains ( thought ) ) { relation = thought ; childThought = new Thought ( thoughtStream [ index + 1 ] ) ; backPressure = true ; } else { relation = "unknown" ; childThought = new Thought ( thought ) ; } childThought . rank = this . rank + children . size ( ) ; childThought . parent = this ; Relation r = new Relation ( relation , childThought ) ; children . put ( relation , r ) ; return backPressure ; }
BackPressure is a potential solution to make this efficient / fast
 @param thought
 @param thoughtStream
 @param index
BackPressure is a potential solution to make this efficient / fast @param thought @param thoughtStream @param index
//thought itself is the relation //Child Rank, Parent and other configurations // not really unique and that's the point, the child rank is relative to its parent