public class TAMEResponse extends java.lang.Object implements TAMEConstants
CUE_ERROR, CUE_FATAL, CUE_PAUSE, CUE_QUIT, CUE_TEXT, CUE_TEXTF, CUE_TRACE, CUE_WAIT, DEFAULT_FUNCTION_DEPTH, DEFAULT_RUNAWAY_THRESHOLD, HEADER_AUTHOR, HEADER_COUNTRY, HEADER_EMAIL, HEADER_LANGUAGE, HEADER_TAME_FUNCDEPTH_MAX, HEADER_TAME_RUNAWAY_MAX, HEADER_TITLE, HEADER_TWITTER, HEADER_VERSION, HEADER_WEBSITE, IDENTITY_ARCHETYPE_CONTAINER, IDENTITY_CURRENT_PLAYER, IDENTITY_CURRENT_ROOM, IDENTITY_CURRENT_WORLD, RETURN_VARIABLE
Modifier and Type | Method and Description |
---|---|
void |
addCue(java.lang.String type)
Adds a response cue to this response object with no content.
|
void |
addCue(java.lang.String type,
boolean content)
Adds a response cue to this response object.
|
void |
addCue(java.lang.String type,
double content)
Adds a response cue to this response object.
|
void |
addCue(java.lang.String type,
long content)
Adds a response cue to this response object.
|
void |
addCue(java.lang.String type,
java.lang.String content)
Adds a response cue to this response object.
|
java.util.Queue<Cue> |
getCues()
Returns the cues on this response.
|
long |
getInterpretNanos()
Gets the amount of nanos it took to process the input itself.
|
long |
getOperationsExecuted() |
long |
getRequestNanos()
Gets the request nanos for the full processing.
|
void |
trace(TAMERequest request,
TraceType type,
java.lang.String format,
java.lang.Object... args)
Adds a trace cue, but only if a specific trace type is set on the request.
|
public java.util.Queue<Cue> getCues()
public void addCue(java.lang.String type, long content)
type
- the cue type name.content
- the cue content.public void addCue(java.lang.String type, double content)
type
- the cue type name.content
- the cue content.public void addCue(java.lang.String type, boolean content)
type
- the cue type name.content
- the cue content.public void addCue(java.lang.String type, java.lang.String content)
type
- the cue type name.content
- the cue content.public void addCue(java.lang.String type)
type
- the cue type name.public long getOperationsExecuted()
public void trace(TAMERequest request, TraceType type, java.lang.String format, java.lang.Object... args)
request
- the request to examine for the trace flag.type
- the trace type for this trace output.format
- the formatter string.args
- the formatter arguments.Formatter
public long getRequestNanos()
public long getInterpretNanos()