public class SchedulePlanningAdapter extends DefaultOptimizationModelAdapter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADAPTER_SQLLOGGER |
Constructor and Description |
---|
SchedulePlanningAdapter() |
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
getInputParameters(OptimizationModelAdapterInputDataContext inputDataContext,
java.lang.Long skdProjectId)
Get the optimization input parameters.
|
MXLogger |
getSqlLogger()
Get the logger
|
double |
MXFormatDuration(double duration)
This method converts the duration in maximo format.
|
void |
prepareInputData(OptimizationModelAdapterInputDataContext inputDataContext,
OptimizationInputProcessParameters inputProcessParameters)
Prepare the input data needed to solve the optimization problem.
|
void |
processOptimizedData(OptimizationModelAdapterOutputDataContext outputDataContext,
OptimizationOutputProcessParameters outputProcessParameters)
This method is for processing optimized data.
|
void |
processOutputData(OptimizationModelAdapterOutputDataContext outputDataContext,
OptimizationOutputProcessParameters outputProcessParameters)
Process the optimization solution.
|
public static final java.lang.String ADAPTER_SQLLOGGER
public void prepareInputData(OptimizationModelAdapterInputDataContext inputDataContext, OptimizationInputProcessParameters inputProcessParameters) throws MXException
MXOptimizationModelAdapter
prepareInputData
in interface MXOptimizationModelAdapter
prepareInputData
in class DefaultOptimizationModelAdapter
MXException
public java.io.Serializable getInputParameters(OptimizationModelAdapterInputDataContext inputDataContext, java.lang.Long skdProjectId) throws MXException
MXOptimizationModelAdapter
getInputParameters
in interface MXOptimizationModelAdapter
getInputParameters
in class DefaultOptimizationModelAdapter
MXException
public void processOutputData(OptimizationModelAdapterOutputDataContext outputDataContext, OptimizationOutputProcessParameters outputProcessParameters) throws MXException
MXOptimizationModelAdapter
processOutputData
in interface MXOptimizationModelAdapter
processOutputData
in class DefaultOptimizationModelAdapter
MXException
public void processOptimizedData(OptimizationModelAdapterOutputDataContext outputDataContext, OptimizationOutputProcessParameters outputProcessParameters) throws MXException
outputDataContext
- outputProcessParameters
- MXException
public double MXFormatDuration(double duration) throws java.lang.Exception
prevDuration
- curDuration
- java.lang.Exception
public MXLogger getSqlLogger()