// file: tr_mod_cstr_3.cc
//

// isip include files
//
#include "train_model.h"
#include "train_model_constants.h"

// method: constructor
//
// arguments:
//  const Train_Model& model : (input) model to copy from
//
// return: none
//
// this is a copy constructor
//
Train_Model::Train_Model(const Train_Model& model_a) {
  
  // set the number of states
  //
  num_states_d = model_a.num_states_d;
  
  // set the transition probabilities
  //
  trans_prob_d = model_a.trans_prob_d;

  // set the states
  //
  states_d = new Train_State*[num_states_d];
  for (int_4 i = 0; i < num_states_d; i++) {
    states_d[i] = model_a.states_d[i];
  }

  // exit gracefully
  //
}
