giavamachia
Class View

java.lang.Object
  |
  +--giavamachia.View

public class View
extends java.lang.Object

A set of Observations.


Constructor Summary
View()
          It creates a new View instance.
 
Method Summary
 void addElement(Observation o)
          It adds an Observation to the View
 Observation elementAt(int i)
          It returns the i-th Observation.
 java.util.Enumeration elements()
          It return an Enumeration containing all Observations
 int size()
          It returns the cardinality of the set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View()
It creates a new View instance.
Method Detail

size

public int size()
It returns the cardinality of the set.
Returns:
number of Observation contained.

addElement

public void addElement(Observation o)
It adds an Observation to the View
Parameters:
o - an Observation to add.

elementAt

public Observation elementAt(int i)
                      throws java.lang.ArrayIndexOutOfBoundsException
It returns the i-th Observation.
Parameters:
i - index
Returns:
the i-th Observation
Throws:
java.lang.ArrayIndexOutOfBoundsException - if i is greater than size()-1.

elements

public java.util.Enumeration elements()
It return an Enumeration containing all Observations
Returns:
an Enumeration value