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()
Object
getInstance()
void
printInitialization(StringBuilder sb)
void
printSetup(StringBuilder sb)
void
reset()
void
setUp(Map<Object,TestGenFact> existingInstances)
String
toString()
-
-
-
Constructor Detail
-
TestGenInlineValue
public TestGenInlineValue(Object value, Map<Object,TestGenFact> existingInstances)
-
-
Method Detail
-
setUp
public void setUp(Map<Object,TestGenFact> existingInstances)
- Specified by:
setUp
in interfaceTestGenFact
-
getInstance
public Object getInstance()
- Specified by:
getInstance
in interfaceTestGenFact
-
getFields
public List<TestGenFactField> getFields()
- Specified by:
getFields
in interfaceTestGenFact
-
getDependencies
public List<TestGenFact> getDependencies()
- Specified by:
getDependencies
in interfaceTestGenFact
-
getImports
public List<Class<?>> getImports()
- Specified by:
getImports
in interfaceTestGenFact
-
reset
public void reset()
- Specified by:
reset
in interfaceTestGenFact
-
printInitialization
public void printInitialization(StringBuilder sb)
- Specified by:
printInitialization
in interfaceTestGenFact
-
printSetup
public void printSetup(StringBuilder sb)
- Specified by:
printSetup
in interfaceTestGenFact
-
-