Decision Variable Cross Reference Report - Gnorion/BizVR GitHub Wiki
When you have a big decision with lots of variable names being set and tested (like USERV) its very easy to misspell one or two or just forget to refer to them. VV will warn you if it finds a variable that is set but not tested.
But that still leaves the user with the problem of trying to figure out:
- did I just forget to test that variable somewhere or
- did I misspell the variable somewhere else or
- is it an unneeded variable Currently there is no easy place to see all the variables in the decision (inputs, intermediate, output)
Maybe its worth having VV generate a cross reference listing of all the attributes and where they are tested and set.
Something like this
Currently VV puts this section (J30) in the results file (though it does not yet get displayed in the BizVR tabs)
If you think it would be helpful I could add more fields to this report section
USERV has a lot more:
Name | Type | Values | Input | Tested | Set |
---|---|---|---|---|---|
accident_surcharge | integer | >=0, <0 | no | yes | yes |
age_eligibility | string | ='young', ='senior' | no | yes | yes |
airbag_discount | integer | >=0, <0 | no | yes | yes |
airbag_premium | integer | >=0, <0 | no | yes | no |
airbags | string | ='none', ='driver', ='driver/passenger', ='driverpassenger/side' | yes | yes | no |
alarm_discount | integer | >=0, <0 | no | yes | yes |
auto_age_premium | integer | >=0, <0 | no | yes | yes |
auto_eligibility | string | ='eligible', ='provisional' | no | yes | yes |
base_premium | integer | >=0, <0, =premium, =0 | no | yes | yes |
car_has_alarm | string | ='yes', ='no' | no | yes | no |
client_score | integer | >=0, <0 | no | yes | yes |
client_status | string | ='not perferred', ='preferred' | no | yes | yes |
combined_balance | integer | >250000, <=250000 | yes | yes | no |
convertible | string | ='yes', ='no' | yes | yes | no |
discounted_premium | integer | >=0, <0 | no | yes | yes |
driver_age | integer | <25, =20, >70, in[25..70], in(20..70] | yes | yes | no |
driver_age_class | string | ='young', ='senior', ='typical' | yes | yes | no |
driver_age_classification | string | ='young', ='senior', ='typical' | no | yes | no |
driver_airbag | string | ='yes' | no | yes | no |
driver_eligibility | string | ='eligible', ='provisional' | no | yes | yes |
driver_gender | string | ='male', ='female' | yes | yes | no |
driver_marital_status | string | ='married', ='single' | yes | yes | no |
driver_premium | integer | >=0, <0 | no | yes | yes |
driver_residence_state | string | ='CA', ='NV', ='VA', =other | yes | yes | no |
driver_residence_state_CA_NV_VA | string | ='yes', ='no' | no | yes | yes |
driver_training | string | ='yes', ='no' | no | yes | yes |
driving_record | string | ='good' | no | yes | yes |
DUIs | integer | >0, =0 | yes | yes | no |
eligibility_rating | string | ='eligible' | no | yes | no |
eligible_participant | string | no | no | yes | |
eligible_policy | string | no | no | yes | |
elite_client | string | ='yes', ='no' | yes | yes | yes |
error | string | no | no | yes | |
final_premium | integer | >=0, <0 | no | yes | yes |
garage | string | ='different state', ='same state' | yes | yes | no |
high_risk_driver | string | ='no', ='yes' | yes | yes | no |
high_theft | string | ='yes', ='no' | no | yes | yes |
how_old_is_the_vehicle | integer | in[-1..0], in[1..4], in[5..10], >10, <-1 | no | yes | no |
injury_premium | integer | >=0, <0 | no | yes | yes |
insured_premium | integer | >=0, <0 | no | yes | no |
issue_policy | string | no | no | yes | |
long_term_client | string | ='yes' | yes | yes | no |
long_term_client_score | integer | >0 | no | yes | no |
market_segment | integer | >=0, <0 | no | yes | no |
medical_premium | integer | >=0, <0 | no | yes | yes |
mfr_is_high_theft | string | ='yes' | no | yes | no |
model_is_high_theft | string | ='yes' | yes | yes | no |
model_year_is_high_theft | string | ='yes' | yes | yes | no |
moving_violations_in_past_2_years | integer | >3, <=3 | yes | yes | no |
number_of_accidents | integer | >2, <=2, =0, >0 | yes | yes | no |
number_of_unique_products | integer | >=3, <3 | yes | yes | no |
occupant_injury | string | ='extreme', ='high', ='low', ='moderate' | no | yes | yes |
occupant_injury_risk_rating | string | ='extreme', ='high' | no | yes | no |
options | string | ='uninsured motorist', ='medical' | yes | yes | no |
options_premium | integer | >=0, <0 | no | yes | no |
passenger_airbag | string | ='no', ='yes' | no | yes | no |
policy_eligible | string | ='yes' | no | yes | yes |
policy_score | integer | <100, in[100..250], >250 | no | yes | yes |
potential_theft | string | ='high', ='low', ='moderate', <>'high' | no | yes | yes |
premium | integer | >base_premium, <=base_premium | no | yes | yes |
premium_reduction | integer | >=0, <0 | no | yes | yes |
purchase_price | integer | >45000, in[20000..45000], <20000 | yes | yes | no |
reclassify_vehicle | string | no | no | yes | |
rollbar | string | ='no' | yes | yes | no |
side_airbags | string | ='no', ='yes' | no | yes | no |
theft_premium | integer | >=0, <0 | no | yes | yes |
type_of_training | string | ='school certificate', ='licensed driver training company certificate', ='senior refresher course', =other | yes | yes | no |
uninsured_premium | integer | no | no | yes | |
vehicle_style | string | ='compact', ='sedan', ='luxury' | yes | yes | no |