Class TestGenInlineValue
- java.lang.Object
-
- org.optaplanner.constraint.drl.testgen.fact.TestGenInlineValue
-
- All Implemented Interfaces:
TestGenFact
public class TestGenInlineValue extends Object implements TestGenFact
Inline value is a value of a shadow variable. From planning perspective, the value is computed from other variable's value. From TestGen perspective, the value is not part of the working facts that are recorded during initial KIE session insertion. It is an anonymous constant created just for the single KIE session update.
-
-
Constructor Summary
Constructors Constructor Description TestGenInlineValue(Object value, Map<Object,TestGenFact> existingInstances)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TestGenFact>getDependencies()List<TestGenFactField>getFields()List<Class<?>>getImports()ObjectgetInstance()voidprintInitialization(StringBuilder sb)voidprintSetup(StringBuilder sb)voidreset()voidsetUp(Map<Object,TestGenFact> existingInstances)StringtoString()
-
-
-
Constructor Detail
-
TestGenInlineValue
public TestGenInlineValue(Object value, Map<Object,TestGenFact> existingInstances)
-
-
Method Detail
-
setUp
public void setUp(Map<Object,TestGenFact> existingInstances)
- Specified by:
setUpin interfaceTestGenFact
-
getInstance
public Object getInstance()
- Specified by:
getInstancein interfaceTestGenFact
-
getFields
public List<TestGenFactField> getFields()
- Specified by:
getFieldsin interfaceTestGenFact
-
getDependencies
public List<TestGenFact> getDependencies()
- Specified by:
getDependenciesin interfaceTestGenFact
-
getImports
public List<Class<?>> getImports()
- Specified by:
getImportsin interfaceTestGenFact
-
reset
public void reset()
- Specified by:
resetin interfaceTestGenFact
-
printInitialization
public void printInitialization(StringBuilder sb)
- Specified by:
printInitializationin interfaceTestGenFact
-
printSetup
public void printSetup(StringBuilder sb)
- Specified by:
printSetupin interfaceTestGenFact
-
-