### Home Classes Methods

### In Files

- lib/goals.rb

### Parent

Goal

### Methods

- ::new
- #satisfied?

### Files

- LessThan5BlueLabels.txt
- AtLeast2LargeSegments.txt

### Class Index

Quicksearch

- AddLabelTool
- AllRulesAppliedGoal
- Area
- AreaConstraint
- Array
- BalancedBinaryTree
- BalancedBinaryTreeNode
- CloseObserver
- Constants
- Constraint
- CurrentLabelledShape
- DistinctShapeConstraint
- Execution
- Goal
- Grammar
- Label
- LabelledShape
- LineDescriptor
- LinearLinkedList
- LinearLinkedListNode
- NoLabelsGoal
- NoMoreRulesGoal
- NoScalesConstraint
- Numeric
- Object
- OrderedPoint
- PiList
- Point
- Project
- Robot
- Rule
- RuleGroupsObserver
- RuleLabelledShape
- RuleShapeObserver
- Segment
- ShaDeLayersObserver
- Shade
- ShadeUtils
- UndoObserver

No matching classes.

# 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.