Package org.oa4mp.server.qdl.testUtils
Class TestUtils.ComputeGracePeriod
- java.lang.Object
-
- org.oa4mp.server.qdl.testUtils.TestUtils.ComputeGracePeriod
-
- All Implemented Interfaces:
Serializable
,org.qdl_lang.extensions.QDLFunction
- Enclosing class:
- TestUtils
public class TestUtils.ComputeGracePeriod extends Object implements org.qdl_lang.extensions.QDLFunction
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComputeGracePeriod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.qdl_lang.variables.values.QDLValue
evaluate(org.qdl_lang.variables.values.QDLValue[] objects, org.qdl_lang.state.State state)
Recreates the logic from the server, but cannot access it since that requires access to the current server state inOA2SE
.int[]
getArgCount()
List<String>
getDocumentation(int argCount)
String
getName()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.qdl_lang.extensions.QDLFunction
-
getArgCount
public int[] getArgCount()
- Specified by:
getArgCount
in interfaceorg.qdl_lang.extensions.QDLFunction
-
evaluate
public org.qdl_lang.variables.values.QDLValue evaluate(org.qdl_lang.variables.values.QDLValue[] objects, org.qdl_lang.state.State state) throws Throwable
Recreates the logic from the server, but cannot access it since that requires access to the current server state inOA2SE
. Therefore, get this from the client management endpoint as the server defaults and use those.- Specified by:
evaluate
in interfaceorg.qdl_lang.extensions.QDLFunction
- Parameters:
objects
-state
-- Returns:
- Throws:
Throwable
-
-