https://github.com/PublicHealthDynamicsLab/FRED
Revision a45e04ad99c865724a3c2b1a2d3fd979b3c6be88 authored by John Grefenstette on 07 January 2016, 16:32:02 UTC, committed by John Grefenstette on 07 January 2016, 16:32:02 UTC
1 parent 9bc2dce
Raw File
Tip revision: a45e04ad99c865724a3c2b1a2d3fd979b3c6be88 authored by John Grefenstette on 07 January 2016, 16:32:02 UTC
working markov epidemic model
Tip revision: a45e04a
Past_Infection.cc
/*
  This file is part of the FRED system.

  Copyright (c) 2010-2015, University of Pittsburgh, John Grefenstette,
  Shawn Brown, Roni Rosenfield, Alona Fyshe, David Galloway, Nathan
  Stone, Jay DePasse, Anuroop Sriram, and Donald Burke.

  Licensed under the BSD 3-Clause license.  See the file "LICENSE" for
  more information.
*/

#include <stdio.h>
#include <vector>
#include <string>
#include <iostream>

#include "Past_Infection.h"
#include "Disease.h"
#include "Strain.h"
#include "Person.h"

using namespace std;

Past_Infection :: Past_Infection() { }

Past_Infection::Past_Infection( int _strain_id, int _recovery_date, int _age_at_exposure ) {
  strain_id = _strain_id;
  recovery_date = _recovery_date;
  age_at_exposure = _age_at_exposure;
}

int Past_Infection::get_strain() {
  return strain_id;
}

void Past_Infection::report () {
  printf( "DEBUG %d %d %d\n",
	  recovery_date, age_at_exposure, strain_id );
}

string Past_Infection :: format_header() {
  return "# person_id disease_id recovery_date age_at_exposure strain_id\n";
}
back to top