org.apache.cocoon.components.flow.apples.samples
Class HanoiApple
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.flow.apples.samples.HanoiApple
- All Implemented Interfaces:
- LogEnabled, AppleController
public class HanoiApple
- extends AbstractLogEnabled
- implements AppleController
HanoiApple shows an apple maintaining the state of the fanous puzzle.
NONE
public static final int NONE
- See Also:
- Constant Field Values
SRC
public static final int SRC
- See Also:
- Constant Field Values
AUX
public static final int AUX
- See Also:
- Constant Field Values
DST
public static final int DST
- See Also:
- Constant Field Values
stacks
public Stack[] stacks
floatingDisk
public Object floatingDisk
moves
public int moves
puzzleSize
public int puzzleSize
HanoiApple
public HanoiApple()
toString
public String toString()
- Overrides:
toString
in class Object
process
public void process(AppleRequest req,
AppleResponse res)
throws ProcessingException
- Description copied from interface:
AppleController
- Allows the AppleController implementation to make some business decissions
in a given web application flow.
Typically those decissions will be based upon what it can find inside the
passed AppleRequest
and result into setting specific aspects of the
AppleResponse
- Specified by:
process
in interface AppleController
- Throws:
ProcessingException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.