Package tools.ToolClasses
Class Tool
java.lang.Object
tools.ToolClasses.Tool
Tool
A class that represents a tool that can be run. This is for simple actions and doesn't take in any arguments.
For tools that take in arguments, use ArgumentedTool instead.
To use, simply extend this class and implement the execute() method. Then, to run the tool, simply call the run() method.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Tool
protected Tool()Default constructor for the tool. This is protected to prevent instantiation of the tool without extending it.
-
-
Method Details
-
execute
The functionality for the tool. Must be implemented. -
run
The main entry point for the tool. This will call theexecute()method.
-