Class EsaSimulationController


  • @RestController
    @RequestMapping("/api/esav1/simulator")
    public class EsaSimulationController
    extends java.lang.Object
    • Constructor Detail

      • EsaSimulationController

        @Autowired
        public EsaSimulationController​(CoeService coeService)
    • Method Detail

      • ping

        @RequestMapping("/ping")
        public java.lang.String ping()
      • simulate

        @RequestMapping(value="/simulate",
                        method=POST)
        public java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> simulate​(@RequestBody
                                                                                                                     EsaSimulationController.EsaSimulateRequestBody body)
                                                                                                              throws CoeService.SimulatorNotConfigured,
                                                                                                                     java.io.IOException,
                                                                                                                     org.intocps.orchestration.coe.config.InvalidVariableStringException,
                                                                                                                     org.intocps.orchestration.coe.config.ModelConnection.InvalidConnectionException
        Throws:
        CoeService.SimulatorNotConfigured
        java.io.IOException
        org.intocps.orchestration.coe.config.InvalidVariableStringException
        org.intocps.orchestration.coe.config.ModelConnection.InvalidConnectionException
      • stop

        @RequestMapping(value="/stop",
                        method=POST)
        public void stop()
      • reset

        @RequestMapping(value="/reset",
                        method=POST)
        public void reset()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getResultPlain

        @RequestMapping(value="/result/plain",
                        method=GET)
        public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getResultPlain()
                                                                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getResultZip

        @RequestMapping(value="/result/zip",
                        method=GET,
                        produces="application/zip")
        public void getResultZip​(javax.servlet.http.HttpServletResponse response)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • destroy

        @RequestMapping(value="/destroy",
                        method=GET)
        public void destroy()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception