You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`plugin`: This subcommand lists currently detected plugins. There are no flags or sub-subcommands of this subcommand.
17
+
-`benchmark`: This subcommand lists currently known benchmarks. There are no flags or sub-subcommands of this subcommand.
18
+
-`transform`: This subcommand allows invocation of installed plugins to transform models. It has four mandatory parameters and several optional flags:
19
+
- First command-line parameter should be the path to the source model (model to be transformed).
20
+
- Second command-line parameter should be the path to the target model (this will be created by the end of the transformation).
21
+
- Two mandatory flags are `-st` and `-tt` (or respectively `--source-type` and `--target-type`). These should correspond to the source and target model types, else transformation is not possible.
22
+
- The flag `--benchmark` can be used to activate any number of benchmarks during transformation. The argument to this option should be comma-seperated list of benchmark names, as shown over the `benchmark` subcommand.
23
+
- The flag `--write-benchmarks` can be used to write benchmark results automatically into some given file. The given file will be concatenated, the output format is CSV.
24
+
- The flag `--blacklist-file` can be used to include some blacklist file while transforming. Blacklisted models (matching by name) won't be transformed.
25
+
- The flag `--strategy` can be used to enforce a certain transformation strategy. By default, TraVarT attempts an one-way transformation. The two possible values here are `ONE\_WAY` or `ROUNDTRIP`.
26
+
- The flag `--inplace-roundtrip` can be used alongside `--strategy=ROUNDTRIP`. In-place roundtrip transformation means that the forward transformation is immediately followed by a reverse transformation; i.e. the resulting model is in source type.
27
+
- The flag `--no-serialize` can be used to skip serialization after transformation. This is especially useful if the user is only interested in benchmarking results. When serialization is skipped, the target model is not persisted.
28
+
- The flag `--strict` can be used when working in batch mode (source path is a folder with multiple models). If in strict mode, transformation is aborted after the first timeout/transformation failure.
29
+
- As just mentioned, TraVarT has a default transformation timeout; this is 5 seconds by default. It can be optionally changed to some arbitrary number of seconds over the `--timeout` option.
30
+
31
+
All subcommands also support the `--verbose` flag.
32
+
33
+
More regarding the architecture of TraVarT and related tools can be found in the publications regarding TraVarT.
BenchmarkCommand.class}, mixinStandardHelpOptions = true, version = "0.0.1", description = "TraVarT main command to transform and validate variability artifacts.")
29
+
PluginCommand.class,BenchmarkCommand.class,
30
+
HelpCommand.class}, mixinStandardHelpOptions = true, version = "0.0.1", description = "TraVarT main command to transform and validate variability artifacts.")
@Parameters(index = "1", description = "The output path to which the variability artifact is transformed. If the source is given as a folder, this parameter must be a folder too.")
96
96
privatePathtargetPath;
97
97
98
-
@Option(names = {"-st", "-sourceType", "--st",
99
-
"--sourceType"}, required = true, description = "The mandatory type of the source variability artifacts, as listed in the plugin command.")
"--source-type"}, required = true, description = "The mandatory type of the source variability artifacts, as listed in the plugin command.")
100
100
privateStringsourceType;
101
101
102
-
@Option(names = {"-tt", "-targetType", "--tt",
103
-
"--targetType"}, required = true, description = "The mandatory target type of the transformed variability artifacts, as listed by the plugin command.")
"--target-type"}, required = true, description = "The mandatory target type of the transformed variability artifacts, as listed by the plugin command.")
0 commit comments