RePast
v. 2.0

uchicago.src.sim.network
Class AbstractAdjacencyMatrix

java.lang.Object
  |
  +--uchicago.src.sim.network.AbstractAdjacencyMatrix
All Implemented Interfaces:
AdjacencyMatrix
Direct Known Subclasses:
AdjacencyBitMatrix, AdjacencyByteMatrix, AdjacencyDoubleMatrix

public abstract class AbstractAdjacencyMatrix
extends Object
implements AdjacencyMatrix


Field Summary
protected  String comment
           
protected  List labels
           
protected  String matrixLabel
           
 
Constructor Summary
AbstractAdjacencyMatrix()
           
 
Method Summary
 String getComment()
          Gets the comment, if any, associated with this matrix.
 List getLabels()
          Gets the node labels for this matrix.
 String getMatrixLabel()
          Gets the label for this matrix.
 void setComment(String comment)
          Associates a comment with this matrix (e.g.
 void setMatrixLabel(String mLabel)
          Sets the label for this matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uchicago.src.sim.network.AdjacencyMatrix
columns, get, getAvgDegree, getDensity, getRow, matrixToString, rows, set, setMatrix
 

Field Detail

labels

protected List labels

matrixLabel

protected String matrixLabel

comment

protected String comment
Constructor Detail

AbstractAdjacencyMatrix

public AbstractAdjacencyMatrix()
Method Detail

setMatrixLabel

public void setMatrixLabel(String mLabel)
Sets the label for this matrix. This is used to indicated the type of matrix (i.e. kinship etc.).

Specified by:
setMatrixLabel in interface AdjacencyMatrix
Parameters:
mLabel - the label for this matrix

getMatrixLabel

public String getMatrixLabel()
Gets the label for this matrix. This is used to indicated the type of matrix (i.e. kinship etc.).

Specified by:
getMatrixLabel in interface AdjacencyMatrix

setComment

public void setComment(String comment)
Associates a comment with this matrix (e.g. the tick count at which it was created.)

Specified by:
setComment in interface AdjacencyMatrix
Parameters:
comment - the comment

getComment

public String getComment()
Gets the comment, if any, associated with this matrix.

Specified by:
getComment in interface AdjacencyMatrix

getLabels

public List getLabels()
Gets the node labels for this matrix.

Specified by:
getLabels in interface AdjacencyMatrix

RePast
v. 2.0

Bug reports and feature requests to RePast