Home > src > BN_pol_rec > visualization > ptfc_transformToCmpNo.m

ptfc_transformToCmpNo

PURPOSE ^

PTFC_TRANSFORMTOCOMPNO - for use with plot_threat_and_focus_change.m

SYNOPSIS ^

function CmpNo = ptfc_transformToCmpNo( target_id )

DESCRIPTION ^

 PTFC_TRANSFORMTOCOMPNO - for use with plot_threat_and_focus_change.m

 param: target_id - platoon target id
 
 AUTHOR  Ronnie Johansson
 CREATED 2004-05-30
 ALTERED 2004-06-07 - now returns number zero for no allocation
 ALTERED 2005-01-26 - minor change

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function CmpNo = ptfc_transformToCmpNo( target_id )
0002 % PTFC_TRANSFORMTOCOMPNO - for use with plot_threat_and_focus_change.m
0003 %
0004 % param: target_id - platoon target id
0005 %
0006 % AUTHOR  Ronnie Johansson
0007 % CREATED 2004-05-30
0008 % ALTERED 2004-06-07 - now returns number zero for no allocation
0009 % ALTERED 2005-01-26 - minor change
0010 
0011 if (strcmp( target_id, 'none' ) == 1) | (strcmp( target_id, 'home_base'))
0012   CmpNo = 0;
0013   return
0014 end
0015 CmpNo = str2num(target_id(4));
0016

Generated on Wed 16-Mar-2005 09:17:47 by m2html © 2003