Class ConcertSeat

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

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

See Also:
Serialized Form

Field Summary
static int ALLOCATED
           
static int FREE
           
static int RESERVED
           
 
Constructor Summary
ConcertSeat(int x, int y)
          This method is ConcertSeat constructor.
 
Method Summary
 java.lang.String getOperator()
          This method is use to get the operator name
 int getStatus()
          This method is use to get the seat status
 java.lang.String seatNumber()
          This method is use to get the Seat Number
 boolean setStatus(int newStatus, java.lang.String operator)
          This method is set the seat status according to new seat status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FREE

public static final int FREE
See Also:
Constant Field Values

RESERVED

public static final int RESERVED
See Also:
Constant Field Values

ALLOCATED

public static final int ALLOCATED
See Also:
Constant Field Values
Constructor Detail

ConcertSeat

public ConcertSeat(int x,
                   int y)
This method is ConcertSeat constructor.

Throws:
without - throws exceptions
Method Detail

seatNumber

public java.lang.String seatNumber()
This method is use to get the Seat Number

Returns:
String - Seat Number
Throws:
without - throws exceptions

getOperator

public java.lang.String getOperator()
This method is use to get the operator name

Returns:
String - operator name
Throws:
without - throws exceptions

getStatus

public int getStatus()
This method is use to get the seat status

Returns:
String - seat status
Throws:
without - throws exceptions

setStatus

public boolean setStatus(int newStatus,
                         java.lang.String operator)
This method is set the seat status according to new seat status

Returns:
boolean - return true is status changed succesfully, otherwise false
Throws:
without - throws exceptions