|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.examples.blocksworld.Block
jadex.examples.blocksworld.Table
public class Table
A table in the blocks-world. In contrast to a block, a table may have multiple blocks on top.
Field Summary |
---|
Fields inherited from class jadex.examples.blocksworld.Block |
---|
pcs |
Constructor Summary | |
---|---|
Table()
Create a new table. |
|
Table(String name,
Color color)
Create a new table. |
Method Summary | |
---|---|
void |
clear()
clear all blocks from the table. |
boolean |
configurationEquals(Table table)
Check if two configurations are equal. |
Block[] |
getAllBlocks()
Get all blocks on the table. |
Block[][] |
getStacks()
Get the stacks on the table. |
boolean |
isClear()
The table is always clear. |
String |
toString()
Create a string representation of this block. |
Methods inherited from class jadex.examples.blocksworld.Block |
---|
addPropertyChangeListener, equals, getColor, getLower, removePropertyChangeListener, stackOn |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Table()
public Table(String name, Color color)
name
- The name of the table.color
- The color of the table.Method Detail |
---|
public boolean isClear()
isClear
in class Block
public String toString()
toString
in class Block
public Block[] getAllBlocks()
public Block[][] getStacks()
public void clear()
public boolean configurationEquals(Table table)
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.