|
JTR 5.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtr.script.ScriptContext
public class ScriptContext
This class represents the default context accessible from
every script via the global.jtrContext
keyword.
This keyword can be used to invoke all the methods exposed
by this class instances.
Constructor Summary | |
---|---|
ScriptContext(java.lang.String cat,
ParametersMap params,
int id,
int epoch,
int run)
Costructor. |
Method Summary | |
---|---|
java.lang.String |
getCategory()
Get the runner's category |
int |
getCurrentEpoch()
Get the current epoch for the script that has been provided with this context |
int |
getCurrentRun()
Get the current run for the script that has been provided with this context |
int |
getInstanceID()
Get the runner's unique progessive identifier |
ParametersMap |
getParameters()
Get the runner's parameters |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptContext(java.lang.String cat, ParametersMap params, int id, int epoch, int run)
cat
- The category of the runner instance the script will run forparams
- The parameters of the same runnerid
- The unique progressive identifier assigned to the above runner instanceepoch
- The current epochrun
- The current runMethod Detail |
---|
public int getCurrentEpoch()
getCurrentEpoch
in interface IScriptContext
public int getCurrentRun()
getCurrentRun
in interface IScriptContext
public java.lang.String getCategory()
getCategory
in interface IScriptContext
public int getInstanceID()
getInstanceID
in interface IScriptContext
public ParametersMap getParameters()
getParameters
in interface IScriptContext
public java.lang.String toString()
toString
in class java.lang.Object
|
The JTR Project is licensed under GPL version 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |