|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.comp211.laundry.command.DoCommandVisitor
public class DoCommandVisitor
Processes a command for the stored student reference
Constructor Summary | |
---|---|
DoCommandVisitor(Student pStudent)
Constructor for the class |
Method Summary | |
---|---|
String |
forChange(Change cCmd)
Process a Change command for the student |
String |
forFold(Fold fCmd)
Process a Fold command for the student |
String |
forLaunder(Launder lCmd)
Process a Launder command for the student |
String |
forLose(Lose lCmd)
Process a Lose command for the student |
String |
forOutfit(Outfit oCmd)
Process an Outfit command for the student |
String |
forReceive(Receive rCmd)
Process a Receive command for the student |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoCommandVisitor(Student pStudent)
pStudent
- the student the command is processing for.Method Detail |
---|
public String forReceive(Receive rCmd)
forReceive
in interface CommandVisitor<String>
rCmd
- the command to process
public String forLose(Lose lCmd)
forLose
in interface CommandVisitor<String>
lCmd
- the command to process
public String forChange(Change cCmd)
forChange
in interface CommandVisitor<String>
cCmd
- the command to process
public String forLaunder(Launder lCmd)
forLaunder
in interface CommandVisitor<String>
lCmd
- the command to process
public String forFold(Fold fCmd)
forFold
in interface CommandVisitor<String>
fCmd
- the command to process
public String forOutfit(Outfit oCmd)
forOutfit
in interface CommandVisitor<String>
oCmd
- the command to process
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |