public class DblMatrixXML extends RepositoryStorageXML implements DblMatrixStorage
nickname, reposListeners, transferAgent
Constructor and Description |
---|
DblMatrixXML(RepositoryConnectivity conn,
java.lang.String storagename) |
Modifier and Type | Method and Description |
---|---|
void |
clearAll()
Removes all entries and resets to an empty matrix.
|
DblMatrix |
copyAsDblMatrix()
Copy the contents of this repository storage into a new DblMatrix.
|
void |
copyFromDblMatrix(DblMatrix x) |
java.lang.Object |
get(int element)
Gets the specified element.
|
java.lang.Class |
getDefaultGraphicalEditorClass() |
java.lang.Class |
getDOMStorageClass()
Returns a DOM storage variant of this storage instance.
|
int[] |
getMatrixSize() |
java.lang.Class |
getStorageTransferAgentClass()
This method should be overridden by subclasses wanting to extend the transfer method.
|
void |
set(java.lang.Object N,
int element)
Sets the specified element.
|
void |
setMatrixSize(int[] siz)
Calls clearAll first then sets size and preallocates to zero.
|
copyStorage, getComment, getCreatedBy, getCreatedOn, getDOM, getEnabled, getNickname, getStorage, getXMLDirectory, getXMLFilename, setComment, setCreatedBy, setCreatedOn, setEnabled, setNickname, transferStorage, writeXML
addRepositoryListener, afterCopyStorage, afterTransferStorage, beforeCopyStorage, beforeTransferStorage, copyStorageCommands, getStorageCalculationsAgentClass, removeRepositoryListener, show, transferStorageCommands
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRepositoryListener, getComment, getCreatedBy, getCreatedOn, getEnabled, getNickname, removeRepositoryListener, setComment, setCreatedBy, setCreatedOn, setEnabled, setNickname
afterCopyStorage, afterTransferStorage, beforeCopyStorage, beforeTransferStorage, copyStorage, copyStorageCommands, transferStorage, transferStorageCommands
public DblMatrixXML(RepositoryConnectivity conn, java.lang.String storagename)
public java.lang.Class getDefaultGraphicalEditorClass()
getDefaultGraphicalEditorClass
in interface RepositoryStorage
getDefaultGraphicalEditorClass
in class RepositoryStorageXML
public java.lang.Class getStorageTransferAgentClass()
AbstractRepositoryStorage
getStorageTransferAgentClass
in class AbstractRepositoryStorage
public java.lang.Class getDOMStorageClass()
AbstractRepositoryStorage
getDOMStorageClass
in interface DOMStorable
getDOMStorageClass
in class RepositoryStorageXML
public int[] getMatrixSize()
getMatrixSize
in interface DblMatrixStorage
public void setMatrixSize(int[] siz)
DblMatrixStorage
setMatrixSize
in interface DblMatrixStorage
public void clearAll()
DblMatrixStorage
clearAll
in interface DblMatrixStorage
public void set(java.lang.Object N, int element)
DblMatrixStorage
set
in interface DblMatrixStorage
public java.lang.Object get(int element)
DblMatrixStorage
get
in interface DblMatrixStorage
public void copyFromDblMatrix(DblMatrix x)
copyFromDblMatrix
in interface DblMatrixStorage
public DblMatrix copyAsDblMatrix()
DblMatrixStorage
copyAsDblMatrix
in interface DblMatrixStorage
Copyright © 2011, 2013. Daniel P. Dougherty