info.sswap.impl.empire.model
Class ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping

java.lang.Object
  extended by info.sswap.impl.empire.model.ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping
Enclosing class:
ReasoningServiceImpl.ReasoningTaskBase

 class ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping
extends java.lang.Object

Represents a pair that consists of a class and an individual belonging to this class.

Author:
Blazej Bulka

Field Summary
private  aterm.ATermAppl clazz
          The class in the mapping
private  aterm.ATermAppl individual
          The individual in the mapping
 
Constructor Summary
ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping(aterm.ATermAppl clazz, aterm.ATermAppl individual)
          Creates a pair that contains the mapping between the class and the individual.
 
Method Summary
 boolean equals(java.lang.Object o)
          Overridden equals() method.
 aterm.ATermAppl getClazz()
          Gets the class.
 aterm.ATermAppl getIndividual()
          Gets the individual
 int hashCode()
          Overrided hashCode() method to maintain consistency with equals().
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

private aterm.ATermAppl clazz
The class in the mapping


individual

private aterm.ATermAppl individual
The individual in the mapping

Constructor Detail

ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping

public ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping(aterm.ATermAppl clazz,
                                                                     aterm.ATermAppl individual)
Creates a pair that contains the mapping between the class and the individual.

Parameters:
clazz - the class
individual - the individual
Method Detail

getClazz

public aterm.ATermAppl getClazz()
Gets the class.

Returns:
the class

getIndividual

public aterm.ATermAppl getIndividual()
Gets the individual

Returns:
the individual

equals

public boolean equals(java.lang.Object o)
Overridden equals() method. The pair is equal to another object if and only if the other object is a ClassIndividualMapping and it contains the same class and individual.

Overrides:
equals in class java.lang.Object
Parameters:
o - object to be compared for equality
Returns:
true if the other object is equal to this one

hashCode

public int hashCode()
Overrided hashCode() method to maintain consistency with equals().

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code for that pair


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.