Package svs_simulation :: Package ai_lib :: Module logic
[show private | hide private]
[frames | no frames]

Module svs_simulation.ai_lib.logic

Generic logic for AI.

Author: Simon Yuill

Contact: simon@lipparosa.org

Copyright: 2005 Simon Yuill

License: GNU GPL version 2 or any later version

Classes
Inference  
LogicRule  

Exceptions
LogicRuleParsingException  

Function Summary
  formatExpressionTokens(tokens)
Checks tokens and separates into property and value.
  parseRuleString(rStr, rule)
Parses string and return LogicRule object.
  parseWeighting(wStr)
Chaecks if string has correct format for weighting then returns number as float.

Variable Summary
Constants logic_const = <svs_core.utilities.lib.Constants instance...

Function Details

formatExpressionTokens(tokens)

Checks tokens and separates into property and value. Returns as tuple.

parseRuleString(rStr, rule)

Parses string and return LogicRule object.

parseWeighting(wStr)

Chaecks if string has correct format for weighting then returns number as float. If not properly formatted, or unable to convert to number, returns None.

Variable Details

logic_const

Type:
Constants
Value:
<svs_core.utilities.lib.Constants instance at 0x30799fd0>              

Generated by Epydoc 2.1 on Thu Oct 20 15:30:30 2005 http://epydoc.sf.net