Skip to content

Rayenkang/ScreenBasedSimulator2

 
 

Repository files navigation

ScreenBasedSimulator2

The next generation of screen based simulation.

How to Run Hub:

Run main method under com.cmu.sbs

How to run BioGearServer on Mac:

  1. Install homebrew
  2. Install boost and google-perftools
  3. Compile BioGears Server under biogears folder
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install boost google-perftools
make mac
  1. cd to /bin
  2. run ./BioGearsServer

How to run BioGears on Centos:

  1. Install Boost??
  2. Compile BioGears Server under biogears folder
make linux

Hub HTTP Protocol

Port: 26666

Address Method Service Function Success Return Value
/biogears/update POST Biogears update patient status BiogearsReply1
/unity/status GET Unity retrieve patient status UnityReply1
/unity/create GET Unity create patient UnityReply2
Address Method Service Function Success Return Value
/scoring/die:{PatientHash} GET Scoring receive patient died DieReply

UnityReply1

{"heart_rate":72.0,"respiration_rate":16.3636,"systolic_arterial_pressure":106.955,"diastolic_arterialpressure":63.8649,"oxygen_saturation":0.968268}

UnityReply2

Create Successful -> "Success"
Create Failure    -> "Failure"

DieReply

Successfully marked patient with hash as deceased -> "Success"
patient has already died -> "Success" 
Patient with hash is not found -> "Failure"

About

The next generation of screen based simulation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 76.1%
  • C# 14.9%
  • GLSL 9.0%