Package com.walkfares.odsl.util
Class ProcessHelper
java.lang.Object
com.walkfares.odsl.util.ProcessHelper
public class ProcessHelper extends Object
-
Constructor Summary
Constructors Constructor Description ProcessHelper()
-
Method Summary
Modifier and Type Method Description static void
addRunInformation(VariableParser vp, com.google.gson.JsonObject input, VarProcess process)
static void
addSubstituteCurves(OpenDSLContext context, VarCurveDates vcd, String oid, String did)
static Convertible
convertInputData(OpenDSLContext context, Convertible var, VarDynamicObject output)
static Convertible
convertInputData(OpenDSLContext context, Convertible var, VarSmartCurve output)
static Convertible
convertInputData(OpenDSLContext context, Convertible var, VarTimeSeries output)
static com.google.gson.JsonObject
generateImpersonator(VarProcess process)
static com.google.gson.JsonObject
generateImpersonator(String tid, String environment)
static Var
getData(OpenDSLContext context, String id)
static Var
getData(OpenDSLContext context, String key, String id, boolean optional, String range)
static Var
getData(OpenDSLContext context, String key, String id, UTCDate date, boolean optional)
static Var
getData(OpenDSLContext context, String key, String id, UTCDate date, boolean optional, String range)
static Var
getData(OpenDSLContext context, String key, String source, String id, boolean optional, String range)
static List<VarEvent>
getEvents(OpenDSLContext context, String eventlist, String filter)
static VarScript
getODSLScript(OpenDSLContext context, String name)
static String
getScript(OpenDSLContext context, String name)
static Var
getVar(OpenDSLContext context, String service, String source, String id)
static void
saveData(OpenDSLContext context, Var object, String source, String reason)
static void
saveObject(OpenDSLContext context, Var object, String source, String reason)
-
Constructor Details
-
ProcessHelper
public ProcessHelper()
-
-
Method Details
-
saveObject
-
saveData
-
getScript
-
getODSLScript
-
getVar
-
getData
-
getData
public static Var getData(OpenDSLContext context, String key, String id, boolean optional, String range) throws Exception- Throws:
Exception
-
getData
public static Var getData(OpenDSLContext context, String key, String source, String id, boolean optional, String range) throws Exception- Throws:
Exception
-
getData
public static Var getData(OpenDSLContext context, String key, String id, UTCDate date, boolean optional) throws Exception- Throws:
Exception
-
getData
public static Var getData(OpenDSLContext context, String key, String id, UTCDate date, boolean optional, String range) throws Exception- Throws:
Exception
-
addSubstituteCurves
public static void addSubstituteCurves(OpenDSLContext context, VarCurveDates vcd, String oid, String did) -
getEvents
-
addRunInformation
public static void addRunInformation(VariableParser vp, com.google.gson.JsonObject input, VarProcess process) -
generateImpersonator
-
generateImpersonator
-
convertInputData
public static Convertible convertInputData(OpenDSLContext context, Convertible var, VarDynamicObject output) -
convertInputData
public static Convertible convertInputData(OpenDSLContext context, Convertible var, VarSmartCurve output) -
convertInputData
public static Convertible convertInputData(OpenDSLContext context, Convertible var, VarTimeSeries output)
-