Class Maestro1SimulationController
- java.lang.Object
-
- org.intocps.maestro.webapi.maestro1.Maestro1SimulationController
-
@RestController @RequestMapping("/api/maestro1/") public class Maestro1SimulationController extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMaestro1SimulationController.FixedStepAlgorithmConfigstatic interfaceMaestro1SimulationController.IAlgorithmConfigstatic classMaestro1SimulationController.IninializationDatastatic classMaestro1SimulationController.InitializeStatusModelstatic interfaceMaestro1SimulationController.IVarStepConstraintstatic classMaestro1SimulationController.SimulateRequestBodystatic classMaestro1SimulationController.StatusModelstatic classMaestro1SimulationController.VariableStepAlgorithmConfig
-
Constructor Summary
Constructors Constructor Description Maestro1SimulationController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.intocps.orchestration.coe.json.InitializationMsgJson.Constraintconvert(Maestro1SimulationController.IVarStepConstraint constraint)Maestro1SimulationController.StatusModelcreateSession()voiddestroy(java.lang.String sessionId)org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>getResultPlain(java.lang.String sessionId)voidgetResultZip(java.lang.String sessionId, javax.servlet.http.HttpServletResponse response)java.util.List<Maestro1SimulationController.StatusModel>getStatuses(java.lang.String sessionId)Maestro1SimulationController.InitializeStatusModelinitializeSession(java.lang.String sessionId, Maestro1SimulationController.IninializationData body)java.lang.Stringping()Maestro1SimulationController.StatusModelsimulate(java.lang.String sessionId, Maestro1SimulationController.SimulateRequestBody body)voidstop(java.lang.String sessionId)voiduploadFile(java.lang.String sessionId, org.springframework.web.multipart.MultipartFile file)
-
-
-
Method Detail
-
convert
public static org.intocps.orchestration.coe.json.InitializationMsgJson.Constraint convert(Maestro1SimulationController.IVarStepConstraint constraint)
-
uploadFile
@RequestMapping(value="/upload/{sessionId}", method=POST) public void uploadFile(@PathVariable java.lang.String sessionId, @RequestParam("fieldFile") org.springframework.web.multipart.MultipartFile file) throws java.io.IOException- Throws:
java.io.IOException
-
ping
@RequestMapping(value="/ping", method=GET) public java.lang.String ping()
-
getStatuses
@RequestMapping(value="/status/{sessionId}", method=GET) public java.util.List<Maestro1SimulationController.StatusModel> getStatuses(@PathVariable java.lang.String sessionId)
-
createSession
@RequestMapping(value="/createSession", method=GET) public Maestro1SimulationController.StatusModel createSession()
-
initializeSession
@RequestMapping(value="/initialize/{sessionId}", method=POST) public Maestro1SimulationController.InitializeStatusModel initializeSession(@PathVariable java.lang.String sessionId, @RequestBody Maestro1SimulationController.IninializationData body) throws java.lang.Exception- Throws:
java.lang.Exception
-
simulate
@RequestMapping(value="/simulate/{sessionId}", method=POST) public Maestro1SimulationController.StatusModel simulate(@PathVariable java.lang.String sessionId, @RequestBody Maestro1SimulationController.SimulateRequestBody body) throws java.lang.Exception- Throws:
java.lang.Exception
-
stop
@RequestMapping(value="/stopsimulation/{sessionId}", method=POST) public void stop(@PathVariable java.lang.String sessionId)
-
getResultPlain
@RequestMapping(value="/result/{sessionId}/plain", method=GET) public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getResultPlain(@PathVariable java.lang.String sessionId) throws java.lang.Exception- Throws:
java.lang.Exception
-
getResultZip
@RequestMapping(value="/result/{sessionId}/zip", method=GET, produces="application/zip") public void getResultZip(@PathVariable java.lang.String sessionId, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception- Throws:
java.lang.Exception
-
destroy
@RequestMapping(value="/destroy/{sessionId}", method=GET) public void destroy(@PathVariable java.lang.String sessionId) throws java.lang.Exception- Throws:
java.lang.Exception
-
-