SimulationTaskImpl
- java.lang.Object
-
- com.fico.xpress.simulation.internal.SimulationTaskImpl
-
- All Implemented Interfaces:
-
SimulationTask,Callable<String>
public class SimulationTaskImpl extends Object implements SimulationTask
A callable object that is specialize to execute a request on an existing, already defined simulation service.
-
-
Constructor Summary
Constructor Description SimulationTaskImpl()
-
Method Summary
Modifier and Type Method Description Stringcall()SimulationPlugingetSimulationService()Retrieve an already configured object so we can score the payload.voidsetSimulationService(SimulationPlugin simulationPlugin)override the ruleServerCachevoidsetSimulationServiceRequest(SimulationRequest simulationRequest)
-
-
-
Method Detail
-
setSimulationServiceRequest
public void setSimulationServiceRequest(SimulationRequest simulationRequest)
- Specified by:
-
setSimulationServiceRequestin interfaceSimulationTask
-
setSimulationService
public void setSimulationService(SimulationPlugin simulationPlugin)
override the ruleServerCacheTODO This is used to instrument the class for testability. Would be better to have the autowired work as expected in the test and make simulationService field final.
- Specified by:
-
setSimulationServicein interfaceSimulationTask - Parameters:
-
simulationPlugin- The service to use in the thread
-
getSimulationService
public SimulationPlugin getSimulationService()
Retrieve an already configured object so we can score the payload. Note the getRuleServer method call is intercepted and the object is first looked up in a synchronized cache. If it does not exist then it is created.- Returns:
- The attached service
-
-
© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
