|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--reservations.ReservationRequestGenerator
A helper class to generate ReservationRequest objects that can be used with Flights and Itineraries.
| Constructor Summary | |
ReservationRequestGenerator()
Create an object that generates ReservationRequests using the default set of built-in names for input. |
|
ReservationRequestGenerator(java.lang.String filename)
Create an object that generates ReservationRequests using the specified file as the source of passenger names. |
|
ReservationRequestGenerator(java.net.URL url)
Create an object that generates ReservationRequests using the indicated URL as the source of names. |
|
| Method Summary | |
boolean |
hasNext()
Returns true if there are more ReservationRequests. |
java.util.Iterator |
iterator()
Returns an Iterator over the current set of ReservationRequests. |
java.lang.Object |
next()
Returns the next ReservationRequest |
ReservationRequest |
nextRequest()
Returns the next ReservationRequest object. |
void |
remove()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReservationRequestGenerator()
throws java.io.IOException
If the system property "infoRequests" is set, the resulting ReservationRequestGenerator will enable a mechanism to make information requests back to Flight and Reservation objects previously generated.
System property values can be set on the java command line:
java -DinfoRequests=true ...
public ReservationRequestGenerator(java.net.URL url)
throws java.io.IOException
If the system property "infoRequests" is set, the resulting ReservationRequestGenerator will enable a mechanism to make information requests back to Flight and Reservation objects previously generated.
System property values can be set on the java command line:
java -DinfoRequests=true ...
public ReservationRequestGenerator(java.lang.String filename)
throws java.io.FileNotFoundException
If the system property "infoRequests" is set, the resulting ReservationRequestGenerator will enable a mechanism to make information requests back to Flight and Reservation objects previously generated.
System property values can be set on the java command line:
java -DinfoRequests=true ...
| Method Detail |
public ReservationRequest nextRequest()
public java.util.Iterator iterator()
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - if iteration
has no more elements.public void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||