Package org.rosaenlg.lib
Class RenderOptionsOutput
- java.lang.Object
-
- org.rosaenlg.lib.RenderOptionsInput
-
- org.rosaenlg.lib.RenderOptionsOutput
-
public class RenderOptionsOutput extends RenderOptionsInput
RosaeNLG runtime options in the output helper.- Author:
- Ludan Stoecklé [email protected]
-
-
Field Summary
-
Fields inherited from class org.rosaenlg.lib.RenderOptionsInput
defaultAmong, defaultSynoMode, forceRandomSeed, KEY_DEFAULTAMONG, KEY_DEFAULTSYNOMODE, KEY_FORCERANDOMSEED, KEY_LANGUAGE, KEY_RENDERDEBUG, language, renderDebug
-
-
Constructor Summary
Constructors Constructor Description RenderOptionsOutput()
Create an empty object.RenderOptionsOutput(org.json.JSONObject jsonOptions)
Create from a JSON object by picking relevant parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completeRenderOptionsOutput(org.json.JSONObject jsonOptions)
Completes existing object by picking additionnal output parameters.int
getRandomSeed()
gets the random seed.RenderOptionsOutput
setRandomSeed(int randomSeed)
sets random seed param.org.json.JSONObject
toJsonObj()
Serializes the object to a JSON object.-
Methods inherited from class org.rosaenlg.lib.RenderOptionsInput
getDefaultAmong, getDefaultSynoMode, getForceRandomSeed, getLanguage, getRenderDebug, setDefaultAmong, setDefaultSynoMode, setForceRandomSeed, setLanguage, setRenderDebug, toJsonString
-
-
-
-
Constructor Detail
-
RenderOptionsOutput
public RenderOptionsOutput()
Create an empty object.
-
RenderOptionsOutput
public RenderOptionsOutput(org.json.JSONObject jsonOptions)
Create from a JSON object by picking relevant parameters.- Parameters:
jsonOptions
- json options which can contain input runtime parameters
-
-
Method Detail
-
completeRenderOptionsOutput
public void completeRenderOptionsOutput(org.json.JSONObject jsonOptions)
Completes existing object by picking additionnal output parameters.- Parameters:
jsonOptions
- json options which can contain output parameters
-
toJsonObj
public org.json.JSONObject toJsonObj()
Serializes the object to a JSON object.- Overrides:
toJsonObj
in classRenderOptionsInput
- Returns:
- JSONObject the object as a JSON String
-
setRandomSeed
public RenderOptionsOutput setRandomSeed(int randomSeed)
sets random seed param.- Parameters:
randomSeed
- the random seed- Returns:
- this to set further options
-
getRandomSeed
public int getRandomSeed()
gets the random seed.- Returns:
- this to set further options
-
-