public class DemoCommands extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DemoCommands.Day |
| Constructor and Description |
|---|
DemoCommands() |
| Modifier and Type | Method and Description |
|---|---|
double |
add(double a,
double b) |
double |
addAll(double... numbers) |
int |
dayOfWeek(DemoCommands.Day day) |
void |
error() |
double |
getTemperature(int module) |
@Command(description="Get the temperature of a module") public double getTemperature(@Argument(name="module",description="module (0-9)") int module)
@Command(description="Add two arguments") public double add(double a, double b)
@Command(description="Add any number of arguments") public double addAll(double... numbers)
@Command(description="Convert day of week to an ordinal") public int dayOfWeek(@Argument(name="Day") DemoCommands.Day day)
@Command(description="Always generates an error") public void error()
Copyright © 2013 LSST. All Rights Reserved.