Class CommandLine<C extends CostModel,P extends InputParser>
- java.lang.Object
-
- com.crawljax.stateabstractions.dom.apted.util.CommandLine<C,P>
-
- Type Parameters:
C- type of cost model.P- type of input parser.
public class CommandLine<C extends CostModel,P extends InputParser> extends Object
This is the command line interface for executing APTED algorithm.- See Also:
CostModel,InputParser
-
-
Field Summary
Fields Modifier and Type Field Description private booleanarrayprivate CcostModelprivate booleancustomprivate StringcustomStrategyprivate StringcustomStrategyArrayFileprivate booleandemaineprivate booleanifSwitchprivate PinputParserprivate booleanmappingprivate APTEDrtedprivate booleanrunprivate booleansotaprivate intsotaStrategyprivate booleanstrategyprivate AptedNodet1private AptedNodet2private booleanverbose
-
Constructor Summary
Constructors Constructor Description CommandLine(C costModel, P inputParser)Constructs the command line.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Main method, invoced when executing the jar file.private voidparseTreesFromCommandLine(String ts1, String ts2)Parse two input trees from the command line and convert them to tree representation usingAptedNodeclass.private voidparseTreesFromFiles(String fs1, String fs2)Parses two input trees from given files and convert them to tree representation usingAptedNodeclass.voidrunCommandLine(String[] args)Run the command line with given arguments.
-
-
-
Field Detail
-
run
private boolean run
-
custom
private boolean custom
-
array
private boolean array
-
strategy
private boolean strategy
-
ifSwitch
private boolean ifSwitch
-
sota
private boolean sota
-
verbose
private boolean verbose
-
demaine
private boolean demaine
-
mapping
private boolean mapping
-
sotaStrategy
private int sotaStrategy
-
customStrategy
private String customStrategy
-
customStrategyArrayFile
private String customStrategyArrayFile
-
rted
private APTED rted
-
inputParser
private final P extends InputParser inputParser
-
t1
private AptedNode t1
-
t2
private AptedNode t2
-
-
Constructor Detail
-
CommandLine
public CommandLine(C costModel, P inputParser)
Constructs the command line. Initialises the cost model and input parser of specific types.- Parameters:
costModel- instance of a specific cost model.inputParser- instance of a specific inputParser.- See Also:
CostModel,InputParser
-
-
Method Detail
-
main
public static void main(String[] args)
Main method, invoced when executing the jar file.- Parameters:
args- array of command line arguments passed when executing jar file.
-
runCommandLine
public void runCommandLine(String[] args)
Run the command line with given arguments.- Parameters:
args- array of command line arguments passed when executing jar file.
-
parseTreesFromCommandLine
private void parseTreesFromCommandLine(String ts1, String ts2)
Parse two input trees from the command line and convert them to tree representation usingAptedNodeclass.- Parameters:
ts1- source input tree as string.ts2- destination input tree as string.- See Also:
AptedNode
-
-