package ws.prova.parser;

/*
 * Copyright (C) 2002-2007 <a href="mailto:a.kozlenkov@city.ac.uk">Alex Kozlenkov</a>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

import java.util.ArrayList;
import java.util.List;

/**
 * Atomic consult used in the rulebase parser.
 * <p>Title: Prova </p>
 * <p>Description: Atomic consult used in the rulebase parser</p>
 * <p>Copyright: Copyright (C) 2002-2007</p>
 * <p>Company: City University, London, United Kingdom</p>
 *
 * @author Alex Kozlenkov
 * @version 2.0 <25 March 2007>
 */
public class AtomicConsult {
	private List items = new ArrayList();

	public List items() {
		return items;
	}

	/**
	 * Insert a clause or a goal to a temporal store for subsequent commit
	 *
	 * @param r Parameters as an object array
	 *          <br> 0: Key
	 *          <br> 1: Head
	 *          <br> 2: Body
	 *          <br> 3: variables in the head
	 *          <br> 4: variables occurring in the body but NOT in the head
	 */
	public void insert_item(Object[] r) {
		items.add(r);
	}

}
