public class Row extends Object
Constructor and Description |
---|
Row()
The default constructor for the Row object.
|
Row(DataInput is)
Construct a Row object from input carried in via the given input
stream.
|
Row(Row old)
Construct a Row using the cells of the given Row.
|
Modifier and Type | Method and Description |
---|---|
int |
getCells()
Return the number of cells in use.
|
int |
getCellsPnt()
Return the number of references (how many transitions) to other
rows.
|
int |
getCellsVal()
Return the number of patch commands saved in this Row.
|
void |
print()
Write the contents of this Row to stdout.
|
void |
setCmd(Character way,
int cmd)
Set the command in the Cell of the given Character to the given
integer.
|
void |
setRef(Character way,
int ref)
Set the reference to the next row in the Cell of the given
Character to the given integer.
|
void |
store(DataOutput os)
Write the contents of this Row to the given output stream.
|
int |
uniformCmd(boolean eqSkip)
Return the number of identical Cells (containing patch commands) in
this Row.
|
public Row(DataInput is) throws IOException
is
- the input streamIOException
public Row()
public Row(Row old)
old
- the Row to copypublic void setCmd(Character way, int cmd)
way
- the Character defining the Cellcmd
- the new commandpublic void setRef(Character way, int ref)
way
- the Character defining the Cellref
- The new ref valuepublic int getCells()
public int getCellsPnt()
public int getCellsVal()
public void store(DataOutput os) throws IOException
os
- the output streamIOException
public int uniformCmd(boolean eqSkip)
eqSkip
- when set to false the removed patch
commands are consideredpublic void print()
Copyright © 2016 Egothor. All Rights Reserved.