Package org.obolibrary.robot
Class RelaxCommand
- java.lang.Object
-
- org.obolibrary.robot.RelaxCommand
-
- All Implemented Interfaces:
Command
public class RelaxCommand extends Object implements Command
Handles inputs and outputs for theRelaxOperation.- Author:
- Chris Mungall
-
-
Field Summary
-
Fields inherited from interface org.obolibrary.robot.Command
global, missingFileError
-
-
Constructor Summary
Constructors Constructor Description RelaxCommand()Initialize the command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandStateexecute(CommandState state, String[] args)Given an input state and command line arguments, run a reasoner, and add axioms to the input ontology, returning a state with the updated ontology.StringgetDescription()Brief description of the command.StringgetName()Name of the command.org.apache.commons.cli.OptionsgetOptions()Command-line options for the command.StringgetUsage()Command-line usage for the command.voidmain(String[] args)Handle the command-line and file operations for the relaxOperation.
-
-
-
Method Detail
-
getName
public String getName()
Name of the command.
-
getDescription
public String getDescription()
Brief description of the command.- Specified by:
getDescriptionin interfaceCommand- Returns:
- description
-
getUsage
public String getUsage()
Command-line usage for the command.
-
getOptions
public org.apache.commons.cli.Options getOptions()
Command-line options for the command.- Specified by:
getOptionsin interfaceCommand- Returns:
- options
-
main
public void main(String[] args)
Handle the command-line and file operations for the relaxOperation.
-
execute
public CommandState execute(CommandState state, String[] args) throws Exception
Given an input state and command line arguments, run a reasoner, and add axioms to the input ontology, returning a state with the updated ontology.
-
-