In Files

Parent

Methods

NoMoreRulesGoal

Author

Manuela Ruiz (mruiz@lcc.uma.es)

A sort of goal: satisfied when no more rules can be applied

Public Class Methods

new() click to toggle source

Initialize the goal

     # File lib/goals.rb, line 103
103:         def initialize

104:                 @name = Constants::NO_MORE_RULES_GOAL_NAME

105:         end

Public Instance Methods

satisfied?() click to toggle source
returns

true iff all no more rules of the grammar can be applied

     # File lib/goals.rb, line 107
107:         def satisfied?

108:                 satisfied = true

109:                 

110:                 applied = Shade.project.execution.apply_rule_random

111:                 if applied

112:                         satisfied = false

113:                         Shade.project.execution.undo

114:                 end   

115: 

116:                 return satisfied

117:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.