All Packages Class Hierarchy This Package Previous Next Index
Class PREDATOR.Schema
java.lang.Object
|
+----PREDATOR.Schema
- public class Schema
- extends Object
This class represents a schema, or ordered sequence of attributes.
- See Also:
- Attribute
-
Schema()
-
-
getArity()
- Returns the number of attributes in the schema.
-
getAttribute(int)
- Gets the attribute associated with a given attribute id.
-
toString()
- Creates a string representation of this schema.
Schema
public Schema()
getArity
public int getArity()
- Returns the number of attributes in the schema.
- Returns:
- The number of attributes in the schema
getAttribute
public Attribute getAttribute(int AttrId) throws IndexOutOfBoundsException
- Gets the attribute associated with a given attribute id.
- Parameters:
- AttrId - The index of the attribute in the schema
- Returns:
- The attribute associated with the index
- Throws: IndexOutOfBoundsException
- if the index is out of bounds
toString
public String toString()
- Creates a string representation of this schema.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index