com.ace.moab.api.reservation
Class Reservations

java.lang.Object
  extended by com.ace.moab.api.reservation.Reservations
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<Reservation>, java.util.Collection<Reservation>

public class Reservations
extends java.lang.Object
implements java.util.Collection<Reservation>, java.io.Serializable

This class represents a collection of Reservations as defined by Moab. This groups multiple reservations into one object to allow group wide operations to be done on reservations such as adding and deleting and searching for reservations.

Author:
Scott Brown
See Also:
Serialized Form

Constructor Summary
Reservations()
           
 
Method Summary
 boolean add(Reservation o)
          
 boolean addAll(java.util.Collection<? extends Reservation> c)
          
 void clear()
          
 boolean contains(java.lang.Object o)
          
 boolean containsAll(java.util.Collection<?> c)
          
 Reservation findReservation(java.lang.String name)
          Attempts to find a reservation with the respective name.
 boolean isEmpty()
          
 java.util.Iterator<Reservation> iterator()
          
 boolean remove(java.lang.Object o)
          
 boolean removeAll(java.util.Collection<?> c)
          
 boolean retainAll(java.util.Collection<?> c)
          
 int size()
          
 java.lang.Object[] toArray()
          
<T> T[]
toArray(T[] a)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

Reservations

public Reservations()
Method Detail

findReservation

public Reservation findReservation(java.lang.String name)
Attempts to find a reservation with the respective name. If the name is null, null is returned. Similarly, if the node cannot be found, null is returned.

Parameters:
name - the name of the reservation to search for.
Returns:
the respective reservation object that matches the node name.

add

public boolean add(Reservation o)

Specified by:
add in interface java.util.Collection<Reservation>

addAll

public boolean addAll(java.util.Collection<? extends Reservation> c)

Specified by:
addAll in interface java.util.Collection<Reservation>

clear

public void clear()

Specified by:
clear in interface java.util.Collection<Reservation>

contains

public boolean contains(java.lang.Object o)

Specified by:
contains in interface java.util.Collection<Reservation>

containsAll

public boolean containsAll(java.util.Collection<?> c)

Specified by:
containsAll in interface java.util.Collection<Reservation>

isEmpty

public boolean isEmpty()

Specified by:
isEmpty in interface java.util.Collection<Reservation>

iterator

public java.util.Iterator<Reservation> iterator()

Specified by:
iterator in interface java.lang.Iterable<Reservation>
Specified by:
iterator in interface java.util.Collection<Reservation>

remove

public boolean remove(java.lang.Object o)

Specified by:
remove in interface java.util.Collection<Reservation>

removeAll

public boolean removeAll(java.util.Collection<?> c)

Specified by:
removeAll in interface java.util.Collection<Reservation>

retainAll

public boolean retainAll(java.util.Collection<?> c)

Specified by:
retainAll in interface java.util.Collection<Reservation>

size

public int size()

Specified by:
size in interface java.util.Collection<Reservation>

toArray

public java.lang.Object[] toArray()

Specified by:
toArray in interface java.util.Collection<Reservation>

toArray

public <T> T[] toArray(T[] a)

Specified by:
toArray in interface java.util.Collection<Reservation>


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.