zombie.core.utils
Class IntHypercube

java.lang.Object
  extended by zombie.core.utils.IntHypercube
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class IntHypercube
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Constructor Summary
IntHypercube(int width, int height, int depth, int quanta)
          C'tor
 
Method Summary
 void clear()
           
 IntHypercube clone()
           
 void fill(int newValue)
           
 int getDepth()
           
 int getHeight()
           
 int getQuanta()
           
 int getValue(int x, int y, int z, int w)
           
 int getWidth()
           
 void setValue(int x, int y, int z, int w, int newValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntHypercube

public IntHypercube(int width,
                    int height,
                    int depth,
                    int quanta)
C'tor

Parameters:
width -
height -
Method Detail

clone

public IntHypercube clone()
                   throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

clear

public void clear()

fill

public void fill(int newValue)

getValue

public int getValue(int x,
                    int y,
                    int z,
                    int w)

setValue

public void setValue(int x,
                     int y,
                     int z,
                     int w,
                     int newValue)

getWidth

public final int getWidth()
Returns:
the width

getHeight

public final int getHeight()
Returns:
the height

getDepth

public final int getDepth()
Returns:
the depth

getQuanta

public final int getQuanta()
Returns:
the "quanta" (4th dimension)