Jadex 0.96

jadex.examples.blocksworld
Class Table

java.lang.Object
  extended by jadex.examples.blocksworld.Block
      extended by jadex.examples.blocksworld.Table

public class Table
extends Block

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

Table

public Table()
Create a new table.


Table

public Table(String name,
             Color color)
Create a new table.

Parameters:
name - The name of the table.
color - The color of the table.
Method Detail

isClear

public boolean isClear()
The table is always clear.

Overrides:
isClear in class Block

toString

public String toString()
Create a string representation of this block.

Overrides:
toString in class Block

getAllBlocks

public Block[] getAllBlocks()
Get all blocks on the table. Also returns blocks which are located on other blocks on the table.


getStacks

public Block[][] getStacks()
Get the stacks on the table.


clear

public void clear()
clear all blocks from the table.


configurationEquals

public boolean configurationEquals(Table table)
Check if two configurations are equal.


Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.