Class InstanceConditionalTest

    • Constructor Detail

      • InstanceConditionalTest

        public InstanceConditionalTest()
    • Method Detail

      • branchForInstance

        public abstract int branchForInstance​(Instance inst)
        Returns the number of the branch for an instance, -1 if unknown.
        Parameters:
        inst - the instance to be used
        Returns:
        the number of the branch for an instance, -1 if unknown.
      • resultKnownForInstance

        public boolean resultKnownForInstance​(Instance inst)
        Gets whether the number of the branch for an instance is known.
        Parameters:
        inst -
        Returns:
        true if the number of the branch for an instance is known
      • maxBranches

        public abstract int maxBranches()
        Gets the number of maximum branches, -1 if unknown.
        Returns:
        the number of maximum branches, -1 if unknown..
      • describeConditionForBranch

        public abstract String describeConditionForBranch​(int branch,
                                                          InstancesHeader context)
        Gets the text that describes the condition of a branch. It is used to describe the branch.
        Parameters:
        branch - the number of the branch to describe
        context - the context or header of the data stream
        Returns:
        the text that describes the condition of the branch
      • getAttsTestDependsOn

        public abstract int[] getAttsTestDependsOn()
        Returns an array with the attributes that the test depends on.
        Returns:
        an array with the attributes that the test depends on