edu.rice.comp211.laundry.student
Interface StudentEnvironment

All Known Implementing Classes:
Student

public interface StudentEnvironment

StudentEnvironment interface that the debugging code in nextCommand uses to access the current state of the simulated student environment.


Field Summary
static int MAX_LOAD
          The maximum number of garments that can be laundered at once.
 
Method Summary
 EnumI<Garment> cleanPants()
          Accessor for the student's pile of clean pants
 EnumI<Garment> cleanShirts()
          Accessor for the student's pile of clean shirts
 EnumI<Garment> cleanSocks()
          Accessor for the student's pile of clean socks
 EnumI<Garment> dirtyPile()
          Accessor for the student's pile of dirty garments
 EnumI<BiListI<Garment>> laundryRoom()
          Accessor for the student's laundry room (list of list of laundered garments)
 String name()
          Accessor for the student's name
 Pants pants()
          Accessor for the Pants the student is currently wearing.
 Shirt shirt()
          Accessor for the Shirt the student is currently wearing.
 Socks socks()
          Accessor for the Socks the student is currently wearing.
 

Field Detail

MAX_LOAD

static final int MAX_LOAD
The maximum number of garments that can be laundered at once.

See Also:
Constant Field Values
Method Detail

name

String name()
Accessor for the student's name

Returns:
the name of the student

shirt

Shirt shirt()
Accessor for the Shirt the student is currently wearing.

Returns:
the current shirt of the student

pants

Pants pants()
Accessor for the Pants the student is currently wearing.

Returns:
the current pants of the student

socks

Socks socks()
Accessor for the Socks the student is currently wearing.

Returns:
the current socks of the student

cleanShirts

EnumI<Garment> cleanShirts()
Accessor for the student's pile of clean shirts

Returns:
the student's clean shirts pile

cleanPants

EnumI<Garment> cleanPants()
Accessor for the student's pile of clean pants

Returns:
the student's clean pants pile

cleanSocks

EnumI<Garment> cleanSocks()
Accessor for the student's pile of clean socks

Returns:
the student's clean socks pile

dirtyPile

EnumI<Garment> dirtyPile()
Accessor for the student's pile of dirty garments

Returns:
the student's dirty clothes pile

laundryRoom

EnumI<BiListI<Garment>> laundryRoom()
Accessor for the student's laundry room (list of list of laundered garments)

Returns:
the student's laundry room