Class Golfing


  • public class Golfing
    extends java.lang.Object
    Use a rule engine to solve a logical riddle. This example is taken from Drools.
    • Field Detail

      • golfing_type_model

        public static final OAVTypeModel golfing_type_model
        The golfing type model.
      • golfer_type

        public static final OAVObjectType golfer_type
        The golfer type.
      • golfer_has_name

        public static final OAVAttributeType golfer_has_name
        A golfer has a name.
      • golfer_has_color

        public static final OAVAttributeType golfer_has_color
        A golfer has a pant color.
      • golfer_has_position

        public static final OAVAttributeType golfer_has_position
        A golfer has a position.
    • Constructor Detail

      • Golfing

        public Golfing()
    • Method Detail

      • createFindSolutionRule

        public static IRule createFindSolutionRule()
        Create the rule for finding a solution.
      • createFindSolutionRuleJCL

        public static IRule createFindSolutionRuleJCL()
        Create the rule for finding a solution (in JCL language).
      • createState

        public static IOAVState createState()
        Create the state containing all possible combinations.
      • main

        public static void main​(java.lang.String[] args)
        Start the example.