|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgcspy.interpreter.Space
public abstract class Space
Represents a space
| Field Summary | |
|---|---|
protected java.lang.String |
blockInfo
The block information for a space |
protected byte[] |
control
The controls for this space |
static byte |
CONTROL_BACKGROUND
Control value for a background tile |
static byte |
CONTROL_LINK
Control value for a control link the link goes |
static byte |
CONTROL_SEPARATOR
Control value for a separator the separator goes |
static byte |
CONTROL_UNUSED
Control value for an unused tile |
static byte |
CONTROL_USED
Control value for a used tile |
protected static java.lang.String |
DEFAULT_UNUSED_STRING
Default string for unused tiles |
protected java.lang.String |
driverName
The name of the space's driver |
protected int |
id
The space's ID |
protected boolean |
mainSpace
Is this the main space? |
protected java.lang.String |
name
The space's name |
protected java.lang.String |
spaceInfo
The space information |
protected int |
streamNum
The number of streams |
protected Stream[] |
streams
The streams |
protected java.lang.String[] |
tileNames
The names of the tiles |
protected int |
tileNum
The number of tiles |
protected java.lang.String |
title
The space's title |
protected java.lang.String |
unusedString
The string to use for unused tiles |
| Constructor Summary | |
|---|---|
Space()
Constructors |
|
| Method Summary | |
|---|---|
void |
deserialise(BufferedInput input)
Deserialise the space |
void |
dump()
Debugging |
java.lang.String |
getBlockInfo()
Get the space's block information |
byte[] |
getControl()
Get the controls for this space |
java.lang.String |
getFullName()
Get the space's full name |
int |
getID()
Get the space's ID |
java.lang.String |
getName()
Get the space's name |
java.lang.String |
getSpaceInfo()
Get the space information for this space |
Stream |
getStream(int streamID)
Return a stream |
int |
getStreamNum()
Get teh number of streams in this space |
java.lang.String |
getTileName(int i)
Return the name of a tile |
int |
getTileNum()
Get the number of tiles in this space |
java.lang.String |
getTitle()
Get the space's title |
java.lang.String |
getUnusedString()
Get the string used for unused tiles |
protected void |
initControl()
Initialise all the controls to unused |
static boolean |
isControlBackground(byte val)
Is this value a background control? |
static boolean |
isControlLink(byte val)
Is this value a link control? |
static boolean |
isControlSeparator(byte val)
Is this value a separator control? |
static boolean |
isControlUnused(byte val)
Is this value an unused control? |
static boolean |
isControlUsed(byte val)
Is this value a used control? |
boolean |
isMainSpace()
Is this the main space in the visualiser? |
void |
serialise(BufferedOutput output)
Serialise the space |
void |
setControl(byte[] control)
Set the controls |
void |
setID(int id)
Set this space's ID |
void |
setSpaceInfo(java.lang.String spaceInfo)
Set the space information |
protected void |
setupControl()
Setup ne controls an initialise them to unused |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte CONTROL_USED
public static final byte CONTROL_BACKGROUND
public static final byte CONTROL_UNUSED
public static final byte CONTROL_SEPARATOR
public static final byte CONTROL_LINK
protected static final java.lang.String DEFAULT_UNUSED_STRING
protected int id
protected java.lang.String name
protected java.lang.String driverName
protected java.lang.String title
protected java.lang.String blockInfo
protected int tileNum
protected java.lang.String[] tileNames
protected int streamNum
protected Stream[] streams
protected java.lang.String spaceInfo
protected java.lang.String unusedString
protected boolean mainSpace
protected byte[] control
| Constructor Detail |
|---|
public Space()
| Method Detail |
|---|
public void setID(int id)
id - the IDpublic void setControl(byte[] control)
control - the controlspublic void setSpaceInfo(java.lang.String spaceInfo)
spaceInfo - The space informationpublic int getID()
public java.lang.String getName()
public java.lang.String getFullName()
public java.lang.String getTitle()
public java.lang.String getBlockInfo()
public int getStreamNum()
public int getTileNum()
public java.lang.String getTileName(int i)
i - the index of the tile
public Stream getStream(int streamID)
streamID - the ID of the stream
public byte[] getControl()
public java.lang.String getSpaceInfo()
public java.lang.String getUnusedString()
public boolean isMainSpace()
protected void setupControl()
protected void initControl()
public static boolean isControlUsed(byte val)
val - A control
public static boolean isControlBackground(byte val)
val - A control
public static boolean isControlUnused(byte val)
val - A control
public static boolean isControlSeparator(byte val)
val - A control
public static boolean isControlLink(byte val)
val - A control
public void serialise(BufferedOutput output)
output - The BufferedOutput to usepublic void deserialise(BufferedInput input)
input - The BufferedInput to usepublic void dump()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||