Class Concert

java.lang.Object
  |
  +--Concert
All Implemented Interfaces:
java.io.Serializable

public class Concert
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Concert(Block[] blockArray)
          This method is Concert constructor
 
Method Summary
 ConcertSeat[] getAllocatedSeats()
          This method is use to get the Seats with status Allocated
 ConcertSeat[] getFreeSeats()
          This method is use to get the Seats with status free
 ConcertSeat[] getReservedSeats()
          This method is use to get the Seats with status reserved
 ConcertSeat getSeat(java.lang.String seatString)
          This method is use to get the seat
 ConcertSeat[] getSeatsOfStatus(int status)
          This method is use to get the seats based on the particular status
 ConcertSeat[] sort(ConcertSeat[] seatArray)
          This method is use to sort the seats based on the operator name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Concert

public Concert(Block[] blockArray)
This method is Concert constructor

Throws:
without - throws exceptions
Method Detail

getSeat

public ConcertSeat getSeat(java.lang.String seatString)
This method is use to get the seat

Returns:
ConcertSeat - ConcertSeat object handler whose seat number match with the parameter
Throws:
without - throws exceptions

getFreeSeats

public ConcertSeat[] getFreeSeats()
This method is use to get the Seats with status free

Returns:
ConcertSeat - array of seats with the status free
Throws:
without - throws exceptions

getReservedSeats

public ConcertSeat[] getReservedSeats()
This method is use to get the Seats with status reserved

Returns:
ConcertSeat - array of seats with the status reserved
Throws:
without - throws exceptions

getAllocatedSeats

public ConcertSeat[] getAllocatedSeats()
This method is use to get the Seats with status Allocated

Returns:
ConcertSeat - array of seats with the status Allocated
Throws:
without - throws exceptions

getSeatsOfStatus

public ConcertSeat[] getSeatsOfStatus(int status)
This method is use to get the seats based on the particular status

Returns:
ConcertSeat[] - array of seats which has been retrieve based on the search criteria
Throws:
without - throws exceptions

sort

public ConcertSeat[] sort(ConcertSeat[] seatArray)
This method is use to sort the seats based on the operator name

Returns:
ConcertSeat[] - array of seats which has been sort.
Throws:
without - throws exceptions