ABLE 2.0.0 07/02/2003 10:25:01

com.ibm.able.examples.rules
Class Puzzle

java.lang.Object
  |
  +--com.ibm.able.examples.rules.Puzzle
All Implemented Interfaces:
java.io.Serializable

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

A Puzzle has a name, level, phase, and three posts.

See Also:
Serialized Form

Constructor Summary
Puzzle()
           
Puzzle(java.lang.String name)
           
Puzzle(java.lang.String name, int level, int phase)
           
Puzzle(java.lang.String name, int level, int phase, int sourcePost, int otherPost, int sinkPost)
           
 
Method Summary
static java.lang.String Copyright()
          Determine the copyright of this class.
 int getLevel()
           
 int getOtherPost()
           
 int getPhase()
           
 int getSinkPost()
           
 int getSourcePost()
           
 void setLevel(int level)
           
 void setOtherPost(int otherPost)
           
 void setPhase(int phase)
           
 void setSinkPost(int sinkPost)
           
 void setSourcePost(int sourcePost)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Puzzle

public Puzzle()

Puzzle

public Puzzle(java.lang.String name)

Puzzle

public Puzzle(java.lang.String name,
              int level,
              int phase)

Puzzle

public Puzzle(java.lang.String name,
              int level,
              int phase,
              int sourcePost,
              int otherPost,
              int sinkPost)
Method Detail

setLevel

public void setLevel(int level)

getLevel

public int getLevel()

setPhase

public void setPhase(int phase)

getPhase

public int getPhase()

setSourcePost

public void setSourcePost(int sourcePost)

getSourcePost

public int getSourcePost()

setOtherPost

public void setOtherPost(int otherPost)

getOtherPost

public int getOtherPost()

setSinkPost

public void setSinkPost(int sinkPost)

getSinkPost

public int getSinkPost()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright

public static java.lang.String Copyright()
Determine the copyright of this class.
Returns:
A String containing this class's copyright statement.


ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003