Class SameGameLazySuccessorGenerator

  • All Implemented Interfaces:
    org.api4.java.common.control.IRandomConfigurable, org.api4.java.datastructure.graph.implicit.ILazySuccessorGenerator<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>, org.api4.java.datastructure.graph.implicit.ISuccessorGenerator<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>

    public class SameGameLazySuccessorGenerator
    extends java.lang.Object
    implements org.api4.java.datastructure.graph.implicit.ILazySuccessorGenerator<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>, org.api4.java.common.control.IRandomConfigurable
    • Constructor Detail

      • SameGameLazySuccessorGenerator

        public SameGameLazySuccessorGenerator()
    • Method Detail

      • generateSuccessors

        public java.util.List<org.api4.java.datastructure.graph.implicit.INewNodeDescription<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>> generateSuccessors​(SameGameNode node)
                                                                                                                                                                             throws java.lang.InterruptedException
        Specified by:
        generateSuccessors in interface org.api4.java.datastructure.graph.implicit.ISuccessorGenerator<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>
        Throws:
        java.lang.InterruptedException
      • getIterativeGenerator

        public java.util.Iterator<org.api4.java.datastructure.graph.implicit.INewNodeDescription<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>> getIterativeGenerator​(SameGameNode n)
        Specified by:
        getIterativeGenerator in interface org.api4.java.datastructure.graph.implicit.ILazySuccessorGenerator<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>
      • getRandomSuccessor

        public org.api4.java.datastructure.graph.implicit.INewNodeDescription<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell> getRandomSuccessor​(SameGameNode node)
      • setRandom

        public void setRandom​(java.util.Random random)
        Specified by:
        setRandom in interface org.api4.java.common.control.IRandomConfigurable