Package de.tubs.pandemieinc
Class PandemieIncAPIController
- java.lang.Object
-
- de.tubs.pandemieinc.PandemieIncAPIController
-
@RestController @RequestMapping("/api") public class PandemieIncAPIController extends ObjectController class to map our implementations to specific URL endpoints.
-
-
Constructor Summary
Constructors Constructor Description PandemieIncAPIController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbogoImplementation(Round round)BogoImplementation, a simple implementation that randomly decides a "possible" action.StringdeadlyMedImplementation(Round round)MedDeadlyFirstImplementation, an implementation that tries to defeat the deadly pathogen at beginning and then develops medications for the other pathogens.StringdeadlyVaccImplmentation(Round round)VaccDeadlyFirstImplementation, an implementation that tries to defeat the deadly pathogen at beginning and then develops vaccines for the other pathogens.StringendRoundImplementation(Round round)EndRoundImplementation, an implementation that only returns "endRound" for learning and documentation purposes.StringfastMedImplementation(Round round)MedFastFirstImplementation, an implementation that tries to defeat the fastest pathogen at beginning and then develops medications for the other pathogens.StringfastVaccImplementation(Round round)VaccFastFirstImplementation, an implementation that tries to defeat the fastest pathogen at beginning and then develops vaccines for the other pathogens.StringslowMedImplementation(Round round)MedSlowFirstImplementation, an implementation that tries to defeat the slowest pathogen at beginning and then develops medications for the other pathogens.StringslowVaccImplementation(Round round)VaccSlowFirstImplementation, an implementation that tries to defeat the slowest pathogen at beginning and then develops vaccines for the other pathogens.StringtriforcekiImplementation(Round round)TriforceKIImplementation, an implementation that selects MedDeadlyFirstImplementation, MedFastFirstImplementation or MedSlowFirstImplementation depending on the Pathogens.StringtriforcekiImplementation2(Round round)TriforceKIImplementation2, an implementation that selects MedDeadlyFirstImplementation, MedFastFirstImplementation or MedSlowFirstImplementation depending on the Pathogens.
-
-
-
Method Detail
-
bogoImplementation
@RequestMapping(value="/bogo", method=POST, produces="application/json") public String bogoImplementation(@RequestBody Round round)BogoImplementation, a simple implementation that randomly decides a "possible" action.Available on /bogo (e.g. localhost:8080/api/bogo)
-
deadlyVaccImplmentation
@RequestMapping(value="/deadlyVacc", method=POST, produces="application/json") public String deadlyVaccImplmentation(@RequestBody Round round)VaccDeadlyFirstImplementation, an implementation that tries to defeat the deadly pathogen at beginning and then develops vaccines for the other pathogens.Available on /deadlyVacc (e.g. localhost:8080/api/deadlyVacc)
-
deadlyMedImplementation
@RequestMapping(value="/deadlyMed", method=POST, produces="application/json") public String deadlyMedImplementation(@RequestBody Round round)MedDeadlyFirstImplementation, an implementation that tries to defeat the deadly pathogen at beginning and then develops medications for the other pathogens.Available on /deadlyMed (e.g. localhost:8080/api/deadlyMed)
-
fastVaccImplementation
@RequestMapping(value="/fastVacc", method=POST, produces="application/json") public String fastVaccImplementation(@RequestBody Round round)VaccFastFirstImplementation, an implementation that tries to defeat the fastest pathogen at beginning and then develops vaccines for the other pathogens.Available on /fastVacc (e.g. localhost:8080/api/fastVacc)
-
fastMedImplementation
@RequestMapping(value="/fastMed", method=POST, produces="application/json") public String fastMedImplementation(@RequestBody Round round)MedFastFirstImplementation, an implementation that tries to defeat the fastest pathogen at beginning and then develops medications for the other pathogens.Available on /fastMed (e.g. localhost:8080/api/fastMed)
-
slowVaccImplementation
@RequestMapping(value="/slowVacc", method=POST, produces="application/json") public String slowVaccImplementation(@RequestBody Round round)VaccSlowFirstImplementation, an implementation that tries to defeat the slowest pathogen at beginning and then develops vaccines for the other pathogens.Available on /slowVacc (e.g. localhost:8080/api/slowVacc)
-
slowMedImplementation
@RequestMapping(value="/slowMed", method=POST, produces="application/json") public String slowMedImplementation(@RequestBody Round round)MedSlowFirstImplementation, an implementation that tries to defeat the slowest pathogen at beginning and then develops medications for the other pathogens.Available on /slowMed (e.g. localhost:8080/api/slowMed)
-
endRoundImplementation
@RequestMapping(value="/endRound", method=POST, produces="application/json") public String endRoundImplementation(@RequestBody Round round)EndRoundImplementation, an implementation that only returns "endRound" for learning and documentation purposes.Available on /endRound (e.g. localhost:8080/api/endRound)
-
triforcekiImplementation
@RequestMapping(value="/triforce", method=POST, produces="application/json") public String triforcekiImplementation(@RequestBody Round round)TriforceKIImplementation, an implementation that selects MedDeadlyFirstImplementation, MedFastFirstImplementation or MedSlowFirstImplementation depending on the Pathogens. (Kevins Neural Network)Available on /triforce (e.g. localhost:8080/api/triforce)
-
triforcekiImplementation2
@RequestMapping(value="/triforce2", method=POST, produces="application/json") public String triforcekiImplementation2(@RequestBody Round round)TriforceKIImplementation2, an implementation that selects MedDeadlyFirstImplementation, MedFastFirstImplementation or MedSlowFirstImplementation depending on the Pathogens. (Jans Neural Network)Available on /triforce2 (e.g. localhost:8080/api/triforce2)
-
-