SameIndividualAtomImpl.java revision 38
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen * Created on Dec 28, 2004
047c00cd3f7f403672f81569413669238df8c15aTimo Sirainen * @author Evren Sirin
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainenpublic class SameIndividualAtomImpl extends AtomImpl implements SameIndividualAtom {
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen public SameIndividualAtomImpl(OWLIndividual ind) {
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen return (SWRLIndividualObject) getPropertyAs(SWRL.argument1, SWRLIndividualObject.class);
7487ff578435377bbeefffdbfb78ca09ed1292dfTimo Sirainen return (SWRLIndividualObject) getPropertyAs(SWRL.argument2, SWRLIndividualObject.class);
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen throw new IndexOutOfBoundsException("Illegal argument index: "+index+" for a SameIndividualAtom");
578ef2538ccf42e2a48234c24a8b709397101d88Timo Sirainen public void setArgument(int index, SWRLObject obj) {
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen throw new IndexOutOfBoundsException("Illegal argument index: "+index+" for a SameIndividualAtom");
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen throw new IllegalArgumentException("SameIndividualAtom argument should be a SWRLIndivdiualObject");
e0740628f6ca05f4bc79a9d8a90b650f4d38d4d0Timo Sirainen public void setArgument1(SWRLIndividualObject obj) {
3f603ef00e35fca21605afa0ad8d76e94fee2b96Timo Sirainen public void setArgument2(SWRLIndividualObject obj) {
86791365b10f45982c88e70f2eb94fd6c3fea151Timo Sirainen return "sameAs(" + getArgument1().debugString() + ", " + getArgument2().debugString() + ")";
6fdfa4d4cf14d1d7764d7faa8258f112e39c8dbeTimo Sirainen ind1 = values.getIndividualValue((Variable) ind1);
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen ind2 = values.getIndividualValue((Variable) ind2);