1 /*
2 wsmo4j - a WSMO API and Reference Implementation
3
4 Copyright (c) 2005, University of Innsbruck, Austria
5
6 This library is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the Free
8 Software Foundation; either version 2.1 of the License, or (at your option)
9 any later version.
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 details.
14 You should have received a copy of the GNU Lesser General Public License along
15 with this library; if not, write to the Free Software Foundation, Inc.,
16 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 package org.omwg.logicalexpression;
19
20 import org.omwg.logicalexpression.terms.*;
21
22 /**
23 * Represents the super class of all molecules containing attributes:
24 * (a[b hasValue c] or a[b ofType c] or a[b impliesType c])
25 *
26 * <pre>
27 * Created on Sep 19, 2005
28 * Committed by $Author$
29 * $Source$,
30 * </pre>
31 *
32 * @author Holger Lausen (holger.lausen@deri.org)
33 *
34 * @version $Revision$ $Date$
35 */
36 public interface AttributeMolecule extends Molecule {
37
38 /**
39 * @return the Term which identifies the attribute of the molecule
40 * (e.g. on joe[age hasValue 5] getAttribute() will return "age")
41 */
42 public Term getAttribute();
43
44 public void setAttribute(Term t);
45
46 }
47
48
49 /*
50 *$Log$
51 *Revision 1.2 2005/09/21 06:31:55 holgerlausen
52 *allowing to set arguments rfe 1290049
53 *
54 *Revision 1.1 2005/09/20 13:21:31 holgerlausen
55 *refactored logical expression API to have simple molecules and compound molecules (RFE 1290043)
56 *
57 */