| | |
| | | private PredictSampleInfoConstructor predictSampleInfoConstructor; |
| | | |
| | | @Autowired |
| | | private ScheduleSampleInfoConstructor scheduleSampleInfoConstructor; |
| | | |
| | | @Autowired |
| | | private PredictSampleDataConstructor predictSampleDataConstructor; |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public SampleInfoConstructor createSampleInfo(String typeA, String modelId){ |
| | | PredictSampleInfoConstructor sampleInfoConstructor = null; |
| | | SampleInfoConstructor sampleInfoConstructor = null; |
| | | if (typeA.compareTo(TypeA.Predict.name()) == 0) { |
| | | sampleInfoConstructor = predictSampleInfoConstructor; |
| | | } else if (typeA.compareTo(TypeA.Schedule.name()) == 0) { |
| | | sampleInfoConstructor = predictSampleInfoConstructor; |
| | | sampleInfoConstructor = scheduleSampleInfoConstructor; |
| | | } |
| | | return sampleInfoConstructor; |
| | | } |