// (c) MIT 2003.  All rights reserved.

// -*-Mode: Java-*- 
// $Id: RuleApplication.java,v 1.2 2003/03/06 00:40:39 moltmans Exp $
// RuleApplication.java -- 
// Author: Michael Oltmans <moltmans@ai.mit.edu> 
// Created: <Mon May 01 18:23:08 2000> 
// Time-stamp: <2000-05-04 15:54:13 moltmans> 
package rec.tms;

/**
 * A simple class to hold and apply rule datum pairs.
 **/
public class RuleApplication 
{
  private InternalRule m_rule;
  /** List of datums that match the signature of rule **/
  private Datum m_datum;
    
  RuleApplication( InternalRule r, Datum datum ) 
  {
    m_rule = r;
    m_datum = datum;
  }

  void apply() 
  {
    m_rule.run( m_datum );
  }
}
