Class CloseRandomStrategy

    • Constructor Detail

      • CloseRandomStrategy

        public CloseRandomStrategy()
      • CloseRandomStrategy

        public CloseRandomStrategy​(Random random)
    • Method Detail

      • selectClosingRows

        public <RI,​RD> List<Row<RI>> selectClosingRows​(List<List<Row<RI>>> unclosedClasses,
                                                             ObservationTable<RI,​RD> table,
                                                             MembershipOracle<RI,​RD> oracle)
        Description copied from interface: ClosingStrategy
        Given a list of row equivalence classes, this method selects for each of the classes one (representative) row which is being closed. This corresponds to selecting one of several long prefixes (i.e., transitions reaching an unknown state) to be an access sequence.

        By contract, the size of the returned list must equal the size of the unclosedClasses argument.

        Specified by:
        selectClosingRows in interface ClosingStrategy<@Nullable Object,​@Nullable Object>
        Parameters:
        unclosedClasses - the list of row equivalence classes
        table - the observation table
        oracle - the membership oracle
        Returns:
        a selection of representative rows to be closed.