@[email protected] class ATScriptEngine extends Object
AT command processor.
AT commands are commonly used by legacy systems to communicate with modems. This AT command processor provides a generic command language that provides access to most of the stack functionality through simple text commands. To harness the full power of the stack, more powerful script engines such as the GroovyScriptEngine are recommended.
Modifiers | Name | Description |
---|---|---|
protected StringBuffer |
data |
|
protected boolean |
echo |
|
protected Map<String, Field> |
fields |
|
protected String |
lastCmd |
|
protected boolean |
load |
|
protected Logger |
log |
|
protected Map<String, List<?>> |
messages |
|
protected Map<String, Method> |
methods |
|
protected boolean |
quiet |
|
protected Map<String, String> |
rmessages |
|
protected Shell |
shell |
|
protected Map<String, Object> |
vars |
Type Params | Return Type | Name and description |
---|---|---|
|
protected boolean |
ERROR() |
|
protected boolean |
OK(String s) |
|
protected boolean |
OK() |
|
void |
abort() |
|
void |
bind(Shell shell) |
|
protected String |
call(String name) |
|
protected String |
call(String name, Object[] args) |
|
void |
deliver(Message msg) |
|
boolean |
exec(String cmd) |
|
boolean |
exec(File script) |
|
boolean |
exec(File script, List<String> args) |
|
boolean |
exec(Class<?> script) |
|
boolean |
exec(Class<?> script, List<String> args) |
|
boolean |
exec(Reader reader, String name) |
|
boolean |
exec(Reader reader, String name, List<String> args) |
|
protected static String |
fromByteArray(byte[] b) |
|
protected static String |
fromFloatArray(float[] f) |
|
protected String |
getParameter(String name, String key, int index = -1) |
|
protected String |
getParameters(String name, int index = -1, Closure filt = { it.toString() |
|
String |
getPrompt(boolean cont) |
|
Object |
getVariable(String name) |
|
protected static String |
getter(String s) |
|
protected static String |
hex(String fmt, int n) |
|
protected static String |
hex(String fmt, float f) |
|
void |
importClasses(String clazz) |
|
String |
input() |
|
boolean |
isBusy() |
|
boolean |
isComplete(String cmd) |
|
boolean |
offer(String s) |
|
protected Object[] |
parseArgs(String args) |
|
protected Message |
request(String name, String msg, Object[] args) |
|
protected def |
resolve(String name) |
|
protected String |
setParameter(String name, String key, String value, int index = -1) |
|
void |
setVariable(String name, Object value) |
|
protected static String |
setter(String s) |
|
void |
shutdown() |
|
protected byte[] |
toByteArray(String a) |
|
protected float[] |
toFloatArray(String a) |
|
protected AgentID |
toTopic(String s) |