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.QDLValueevaluate(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)StringgetName()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.qdl_lang.extensions.QDLFunction
-
getArgCount
public int[] getArgCount()
- Specified by:
getArgCountin 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 ThrowableRecreates 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:
evaluatein interfaceorg.qdl_lang.extensions.QDLFunction- Parameters:
objects-state-- Returns:
- Throws:
Throwable
-
-