package Sequenic.T2.Engines;import Sequenic.P2.StringFormater; import Sequenic.T2.Msg.Message; import jargs.gnu.*; public class CombinatoricEngineToolPlug extends BaseEngineToolPlug { private CmdLineParser.Option numOfDuplicatesO = parser.addIntegerOption("dup"); public CombinatoricEngineToolPlug() { super() ; addOption(numOfDuplicatesO, "Number of duplicates per sequence."); } @Override public void configure(String[] options) throws CmdLineParser.IllegalOptionValueException, CmdLineParser.UnknownOptionException { super.configure(options); // Plug a different sequence generator: CombinatoricSeqGenerator seqGen = new CombinatoricSeqGenerator(engine) ; seqGen.r = engine.maxExecLength-1 ; seqGen.duplicates = (Integer) parser.getOptionValue(numOfDuplicatesO,seqGen.duplicates) ; seqGen.init() ; engine.seqGenerator = seqGen ; config.add("Number of duplicates per sequence = " + seqGen.duplicates) ; } public void consoleHelp() { println(Message.GREET); println(Message.BEGIN); println("Combinatoric-engine GENERAL USE:\n"); println(" java -ea -cp Sequenic.T2.Main -C