saffron.opt
Class RuleMatch

java.lang.Object
  |
  +--saffron.opt.RuleCall
        |
        +--saffron.opt.RuleMatch

class RuleMatch
extends RuleCall

A match of a rule to a particular set of target relational expressions, frozen in time.

Since:
Jun 14, 2003
Version:
$Id: //open/saffron/src/main/saffron/opt/RuleMatch.java#1 $
Author:
jhyde

Field Summary
private  String digest
           
(package private)  RelSet targetSet
           
(package private)  RelSubset targetSubset
           
 
Fields inherited from class saffron.opt.RuleCall
operand0, rels, rule
 
Constructor Summary
(package private) RuleMatch(Operand operand0, Rel[] rels)
          Creates a RuleMatch.
 
Method Summary
private  String computeDigest()
           
(package private)  double computeImportance()
           
private  RelSubset guessSubset()
           
 String toString()
           
 
Methods inherited from class saffron.opt.RuleCall
getPlanner, getRule, match, onMatch, transformTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

targetSet

final RelSet targetSet

targetSubset

RelSubset targetSubset

digest

private final String digest
Constructor Detail

RuleMatch

RuleMatch(Operand operand0,
          Rel[] rels)
Creates a RuleMatch.

Parameters:
operand0 - Primary operand
rels - List of targets; copied by the constructor, so the client can modify it later
Pre-condition:
rels[i] != null
Method Detail

toString

public String toString()
Overrides:
toString in class Object

computeDigest

private String computeDigest()

guessSubset

private RelSubset guessSubset()

computeImportance

double computeImportance()

SourceForge.net_Logo