automotivoiniciante

Faróis automáticos de carro

Tabela de decisão para determinar se os faróis do carro precisam ser acesos com base na hora do dia, visibilidade e túneis.

DecisionRules

David Škarka

Template author

This Decision logic determines the appropriate operation of a vehicle's headlights by evaluating the current status of the lights against various environmental conditions. The goal is to automate safety actions, ensuring lights are active during hazardous or low-light situations and conserved when conditions are clear.


Solution components:

The solution consists of a single Decision Table named "Automatic Car Headlights". This table processes four specific input variables to determine a single output action.

  • Inputs:

    • headlightStatus: Indicates if the lights are currently "On" or "Off".

    • nightTime: A boolean indicator (Yes/No) regarding the time of day.

    • poorVisibility: A boolean indicator (Yes/No) regarding weather or clarity.

    • tunnel: A boolean indicator (Yes/No) regarding whether the vehicle is inside a tunnel.

  • Output:

    • action: Defines the Next Action, such as "Turn headlights ON," "Turn headlights OFF," or "Do nothing".

Rule Logic: 

The Decision Table evaluates the inputs through the following logic rows:

  • Activation Logic (Turning ON):

    • If the headlights are Off and poorVisibility is "Yes," the action is "Turn headlights ON".

    • If the headlights are Off and nightTime is "Yes," the action is "Turn headlights ON".

    • If the headlights are Off and tunnel is "Yes," the action is "Turn headlights ON".

  • Deactivation Logic (Turning OFF):

    • If the headlights are On, and it is not nghtTime, notpoorVisibility, and not a tunnel, the action is "Turn headlights OFF".

  • Do Nothing:

    • If the headlights are Off, and all environmental indicators (nightTime, poorVisibility, tunnel) are "No," the action is "Do nothing".

    • If the headlights are On, and any of the environmental conditions persist (captured by the ELSE logic in the final row), the action is "Do nothing".

Use this logic block as a standalone safety feature for vehicle control systems or integrate it into larger driver-assistance modules.

Check iconA checkmark inside a circle signifying "yes"Minus iconA minus inside a circle signifying "no"PROS IconA plus symbol representing positive aspects or benefits.CONS IconA minus symbol representing negative aspects or drawbacks.

More Templates

See Other Templates

serviços financeirossugerido

Teste A/B

Descubra uma maneira simples de atribuir um grupo de teste para realizar testes A/B em suas decisões.

Explore
serviços financeirossugerido

Precificação baseada em risco

Descubra uma maneira simples de aplicar uma matriz de precificação baseada em risco adequada ao tipo de cliente.

Explore
serviços financeirossugerido

Critérios de Elegibilidade e Regras da Política

Descubra uma maneira simples de definir e executar vários conjuntos de regras e obter o resultado da decisão final.

Explore