Fact.java
Go to the documentation of this file.
00001 /*
00002  * Copyright Dept. of Mathematics & Computer Science Univ. Paris-Descartes
00003  *
00004  * This software is governed by the CeCILL  license under French law and
00005  * abiding by the rules of distribution of free software.  You can  use,
00006  * modify and/ or redistribute the software under the terms of the CeCILL
00007  * license as circulated by CEA, CNRS and INRIA at the following URL
00008  * "http://www.cecill.info".
00009  *
00010  * As a counterpart to the access to the source code and  rights to copy,
00011  * modify and redistribute granted by the license, users are provided only
00012  * with a limited warranty  and the software's author,  the holder of the
00013  * economic rights,  and the successive licensors  have only  limited
00014  * liability.
00015  *
00016  * In this respect, the user's attention is drawn to the risks associated
00017  * with loading,  using,  modifying and/or developing or reproducing the
00018  * software by the user in light of its specific status of free software,
00019  * that may mean  that it is complicated to manipulate,  and  that  also
00020  * therefore means  that it is reserved for developers  and  experienced
00021  * professionals having in-depth computer knowledge. Users are therefore
00022  * encouraged to load and test the software's suitability as regards their
00023  * requirements in conditions enabling the security of their systems and/or
00024  * data to be ensured and,  more generally, to use and operate it in the
00025  * same conditions as regards security.
00026  *
00027  * The fact that you are presently reading this means that you have had
00028  * knowledge of the CeCILL license and that you accept its terms.
00029  */
00030 
00031 //package pddl4j.graphplan;
00032 
00033 import pddl4j.exp.AtomicFormula;
00034 import pddl4j.exp.term.Term;
00035 
00043 public final class Fact extends AtomicFormula {
00044 
00048     private static final long serialVersionUID = -4463978711591817598L;
00049 
00053     private int id;
00054 
00058     private int level;
00059     
00060     
00067     public Fact(String p, int id) {
00068         super(p);
00069         this.id = id;
00070         this.level = -1;
00071     }
00072     
00079     public Fact(AtomicFormula prop, int id) {
00080         super(prop.getPredicate());
00081         for (Term arg : prop) {
00082             super.add(arg);
00083         }
00084         this.id = id;
00085         this.level = -1;
00086     }
00087     
00094     public int getLevel() {
00095         return this.level;
00096     }
00097 
00103     public void setLevel(int level) {
00104         this.level = level;
00105     }
00106 
00112     public int getId() {
00113         return this.id;
00114     }
00115 
00121     public void setId(int id) {
00122         this.id = id;
00123     }
00124 }


tug_ist_diagnosis_repair
Author(s): Safdar Zaman
autogenerated on Mon Jan 6 2014 11:51:12