dnl Copyright (C) 2012, 2013, 2015 The Meme Factory, Inc. http://www.meme.com/ dnl Copyright (C) 2004, 2008-2011, Karl O. Pinc dnl dnl This file is part of Gombe-MI. dnl dnl Gombe-MI is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 3 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with Gombe-MI. If not, see . dnl dnl Constant data values hardcoded into the system. dnl dnl Karl O. Pinc dnl dnl Bugs: dnl This file is processed by Makefiles (with m4toentityconstants) dnl to produce xml entities for use in the documentation and the dnl view definitions. This processing is simplistic and requires dnl defines be a single line and arguments be quoted. dnl dnl changequote([{[,]}])dnl m4 foolery so includes include only once. dnl Once the macro is in the text, change the quotes back ifdef([{[_constants.m4]}], [{[changequote(`,')]}], [{[dnl changequote(`,')dnl dnl dnl Standard test for having already included the file. define(`_constants.m4')dnl dnl dnl Turn output off. This file produces no output. divert(-1) dnl dnl Constants for data types. dnl (Lengths and so forth) dnl dnl Maximum length of the AnimID column. define(`gmi_animid_len', `5') dnl Maximum length of the AnimID_Num column. define(`gmi_animid_num_len', `20') dnl Maximum length of BEHAVIORS.Behavior. define(`gmi_behavior_len', `5') dnl Maximum length of FOODKINDS.FoodKind. dnl Max length in the data is 16 (I think), but who's counting? define(`gmi_foodkind_len', `20') dnl Maximum length of FOODPARTS.Foodpart define(`gmi_foodpart_len', `3') dnl Maximum length of PLAYS.Play. define(`gmi_play_len', `3') dnl dnl Constants for imported data. dnl dnl The suffix attached to dadid in the access db when the dnl assigment is preliminary. define(`gmi_dadid_prelim', `_prelim') dnl dnl Constants for db data. dnl dnl biography_data dnl Unknown individuals dnl The unknown stranger define(`gmi_stranger', `MGE') dnl The unknown individual define(`gmi_unk_animid', `UNK') dnl Birth group certanity. define(`gmi_bgcertain', `C') define(`gmi_bguncertain', `U') dnl sex define(`gmi_male', `M') define(`gmi_female', `F') define(`gmi_unk_sex', `U') dnl firstborn define(`gmi_fb', `Y') define(`gmi_not_fb', `N') define(`gmi_unk_fb', `U') -- Constants involving follows. dnl When follows were first done. Apparently really May 28, 1970, but.... define(`gmi_first_date', `1970-01-01') dnl The last date FOLLOWS.EntryDate can be NULL. define(`gmi_max_null_entrydate', `2011-06-30') dnl Maximum age of infant or sib in follow define(`gmi_notmom_maxage', `15 years') dnl When the observation starts and stops every day. define(`gmi_day_start', `06:00') define(`gmi_day_end', `20:00') dnl followroles.function define(`gmi_mom', `M') define(`gmi_infant', `I') define(`gmi_sib', `S') define(`gmi_nonfocal', `NF') dnl never used in followroles.function dnl but used instead of NULL in views dnl dnl UPLOAD_BEHAVIORS dnl dnl The beahvior delimiter define(`gmi_behavior_delim', `;')dnl dnl The chimpid delimiter define(`gmi_chimpid_delim', `,')dnl dnl followroles.role dnl Used by UPLOAD_BEHAVIORS and FOCAL_FOLLOWS; breaks followroles abstraction. define(`gmi_mom_role', `M') define(`gmi_infant_role', `I') define(`gmi_sib_role', `S') dnl badobs values define(`gmi_badobs_y', `Y')dnl All uncertain define(`gmi_badobs_w', `W')dnl All uncertain (swahili) define(`gmi_badobs_m', `M')dnl Mom is uncertain (swahili and english) define(`gmi_badobs_i', `I')dnl Infant is uncertain define(`gmi_badobs_t', `T')dnl Infant is uncertain (swahili) define(`gmi_badobs_s', `S')dnl Sib is uncertain define(`gmi_badobs_k', `K')dnl Sib is uncertain (swahili) define(`gmi_badobs_mi', `M/I')dnl Mom and infant are uncertain define(`gmi_badobs_mt', `M,T')dnl Mom and infant are uncertain (swahili) define(`gmi_badobs_ms', `M/S')dnl Mom and sib are uncertain define(`gmi_badobs_mk', `M,K')dnl Mom and sib are uncertain (swahili) define(`gmi_badobs_is', `I/S')dnl Infant and sib are uncertain define(`gmi_badobs_kt', `K,T')dnl Infant and sib are uncertain (swahili) dnl Animid codes with special meaning define(`gmi_animid_qmark', `?') define(`gmi_animid_y', `Y') define(`gmi_animid_baboon', `NYA') dnl The behavior code to ignore, no behavior. define(`gmi_ignore_mark', `-') dnl The semi-boolean values. define(`gmi_sb_y', `Y') define(`gmi_sb_qmark', `?') dnl The default fishing result. define(`gmi_fishing_success', `S') dnl The devbeh string literal. define(`gmi_devbeh', `DEVBEH!') dnl The hardcoded column names looked up on behavior_trans. define(`gmi_ma_foodpart', `ma_foodpart') define(`gmi_ma_fishpart', `ma_fishpart') define(`gmi_ma_voc', `ma_voc') define(`gmi_ma_grooming', `ma_grooming') define(`gmi_ma_groomed_by', `ma_groomed_by') define(`gmi_ma_play', `ma_play') define(`gmi_inf_foodpart', `inf_foodpart') define(`gmi_inf_fishpart', `inf_fishpart') define(`gmi_inf_nurse', `inf_nurse') define(`gmi_inf_travel', `inf_travel') define(`gmi_inf_eat', `inf_eat') define(`gmi_inf_solitary_play', `inf_solitary_play') define(`gmi_inf_rest', `inf_rest') define(`gmi_inf_ride_on_belly', `inf_ride_on_belly') define(`gmi_inf_ride_on_back', `inf_ride_on_back') define(`gmi_inf_ride_on_unk', `inf_ride_on_unk') define(`gmi_inf_dangle', `inf_dangle') define(`gmi_inf_rejection', `inf_rejection') define(`gmi_inf_touching_another', `inf_touching_another') define(`gmi_inf_grooming', `inf_grooming') define(`gmi_inf_being_groomed', `inf_being_groomed') define(`gmi_inf_social_play', `inf_social_play') define(`gmi_inf_display', `inf_display') define(`gmi_inf_cry', `inf_cry') define(`gmi_inf_voc', `inf_voc') define(`gmi_inf_beg', `inf_beg') define(`gmi_inf_assr', `inf_assr') define(`gmi_inf_sex_related', `inf_sex_related') define(`gmi_inf_tooluse', `inf_tooluse') define(`gmi_inf_directaggression', `inf_directaggression') define(`gmi_devbeh_col', `devbeh') define(`gmi_sib_foodpart', `sib_foodpart') define(`gmi_sib_fishpart', `sib_fishpart') define(`gmi_sib_grooming', `sib_grooming') define(`gmi_sib_groomed_by', `sib_groomed_by') define(`gmi_sib_play', `sib_play') define(`gmi_sib_voc', `sib_voc') dnl The hardcoded column names looked up on distance_trans. define(`gmi_inf_distance_1', `inf_distance_1') define(`gmi_inf_distance_2', `inf_distance_2') define(`gmi_inf_distance_3', `inf_distance_3') define(`gmi_inf_distance_4', `inf_distance_4') define(`gmi_inf_distance_5', `inf_distance_5') define(`gmi_inf_distance_over_5m', `inf_distance_over_5m') dnl dnl infer_gc() constants dnl dnl How often are virtual group comps taken? define(`gmi_gc_interval', `15 minutes') dnl How much of a gap in observation is required to reset the dnl group comp start time to a new set of intervals? define(`gmi_gc_reset_interval', `15 minutes') dnl The FIELDFOLLOWS.GCStatus value to use for inferred group comps. define(`gmi_automatic_gcstatus', `A') dnl Other data constants. dnl groupmembers.swelling legal values define(`gmi_0', `0') define(`gmi_1_4', `1/4') define(`gmi_1_2', `1/2') define(`gmi_3_4', `3/4') define(`gmi_1', `1') define(`gmi_U', `U') dnl The gm_origins.origin value that means automatic. define(`gmi_automatic_origin', `A') dnl Minimum swelling age define(`gmi_swelling_min_age', `7 years') dnl Minium age below which it is assumed that mom is present in group. define(`gmi_min_alone_age', `5 years') dnl distances.distance define(`gmi_distunk', `99') dnl behaviors.type define(`gmi_eating', `E') define(`gmi_vocal', `V') define(`gmi_play', `P') define(`gmi_ride', `R') define(`gmi_rest', `T') define(`gmi_other', `O') define(`gmi_fish', `F') dnl parts.part define(`gmi_actor', `R') define(`gmi_actee', `E') define(`gmi_self', `S') define(`gmi_participant', `P') dnl---------not yet used below-------------- define(`gmi_day_early_start', `04:00')dnl earliest start of the work day define(`gmi_day_early_end', `19:00') dnl dnl Views dnl dnl dnl Computational constants dnl dnl dnl The warning system. dnl include(`warningconstants.m4') dnl Turn output back on divert`'dnl dnl dnl ]}])dnl End of ifdef over the whole file.