public class GridElementXML extends RepositoryStorageXML implements GridElementStorage
nickname, reposListeners, transferAgent
Constructor and Description |
---|
GridElementXML(RepositoryConnectivity conn,
java.lang.String storagename) |
Modifier and Type | Method and Description |
---|---|
void |
addAllChildGridElements(java.util.Vector elems)
Adds all RepositoryElements in Vector as child grids.
|
void |
addChildGridElement(RepositoryElement elem)
Adds the specified child GridElementStorage to this storage.
|
void |
addGriddedRegionListener(GriddedRegionListener l) |
void |
addVertexListener(VertexListener l) |
int |
childCount()
Returns the number of child GridElements
|
void |
clearChildGrids()
Removes all child GridElementStorages from this storage.
|
void |
clearGridCoordinates()
Removes all vertices information from this GridElementStorage.
|
java.io.File[] |
exportUNG()
Exports the grid in Arc/Info Ungenerate ASCII file format.
|
java.io.File[] |
exportUNG(java.io.File hdrFile,
java.io.File datFile)
Exports the grid in Arc/Info Ungenerate ASCII file format.
|
void |
fireGriddedRegionEvent(GriddedRegionEvent dv) |
void |
fireVertexEvent(VertexEvent dv) |
java.lang.String |
getAlternate()
Gets the Alternate name for this GridElementStorage.
|
DblMatrix |
getCentroid() |
RepositoryElement |
getChildGridElement(int k)
Returns a RepositoryElement for the storage of the indicated child GridElementStorage.
|
java.util.Vector |
getChildGridElements()
Returns Vector of RepositoryElements pointing to the child grids.
|
java.lang.String |
getComment()
Gets the descriptive comment for this Wedge inverse problem as a whole.
|
RepositoryElement |
getCoordinateRepositoryElement()
Gets the vertices storage for this GridElementStorage.
|
DblMatrix |
getCoords() |
DblMatrix |
getCoordsOf(java.lang.Integer row) |
java.lang.Class |
getDefaultGraphicalEditorClass() |
int |
getDimension() |
java.lang.Class |
getDOMStorageClass()
Returns a DOM storage variant of this storage instance.
|
int |
getGridCount() |
GridElement |
getGridElement(int index) |
java.lang.Integer |
getIndex(int j) |
java.lang.String |
getLabel() |
java.lang.String |
getLongName()
Gets the LongName for this GridElementStorage.
|
GridElement |
getParent() |
DblMatrix |
getPerimeter()
Returns the perimeter (2D only) of this simplex.
|
java.lang.Class |
getStorageTransferAgentClass()
This method should be overridden by subclasses wanting to extend the transfer method.
|
DblMatrix |
getVolume() |
DblMatrix |
getXData()
Gets just the x-coordinate data for this GridElementStorage.
|
DblMatrix |
getYData()
Gets just the y-coordinate data for this GridElementStorage.
|
java.util.Iterator |
gridIterator() |
void |
importAsChildUNG(java.io.File headrFile,
java.io.File datFile)
Import all grids from data saved in Arc/Info Ungenerate ASCII file format.
|
void |
importAsChildUNG(java.io.File headrFile,
java.io.File datFile,
int nskips)
Import all grids from data saved in Arc/Info Ungenerate ASCII file format.
|
void |
importAsChildUNG(java.util.Set targets,
java.io.File hdrFile,
java.io.File datFile,
int nskips)
Imports the indicated grid data as a child grid under this grid.
|
void |
importAsChildUNG(java.lang.String idxident,
java.io.File hdrFile,
java.io.File datFile,
int nskips)
Imports the indicated grid data as a child grid under this grid.
|
void |
importVerticesUNG(java.lang.String idxident,
java.io.File datFile)
Imports the indicated grid data into this GridElementStorage's vertices.
|
void |
importVerticesUNG(java.lang.String idxident,
java.io.File datFile,
int nskips)
Imports the indicated grid data into this GridElementStorage's vertices.
|
void |
removeChildGridElement(RepositoryElement elem)
Removes the specified child GridElementStorage from this storage.
|
void |
removeGriddedRegionListener(GriddedRegionListener l) |
void |
removeVertexListener(VertexListener l) |
void |
setAlternate(java.lang.String Alternate)
Sets the Alternate name for this GridElementStorage.
|
void |
setCoordinateRepositoryElement(RepositoryElement elem)
Specifies vertices storage for this GridElementStorage.
|
void |
setLabel(java.lang.String Label)
Sets the Label for this GridElementStorage.
|
void |
setLongName(java.lang.String LongName)
Sets the LongName for this GridElementStorage.
|
void |
setParentGridElement(RepositoryElement elem)
Sets the parent GridElementStorage
|
int |
size() |
java.util.Vector |
subFacesOf() |
java.util.Vector |
verticesOf()
Returns a Vector of Integers indexing into the coordinate data.
|
copyStorage, 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, getCreatedBy, getCreatedOn, getEnabled, getNickname, removeRepositoryListener, setComment, setCreatedBy, setCreatedOn, setEnabled, setNickname
afterCopyStorage, afterTransferStorage, beforeCopyStorage, beforeTransferStorage, copyStorage, copyStorageCommands, transferStorage, transferStorageCommands
public GridElementXML(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 void addVertexListener(VertexListener l)
addVertexListener
in interface GridElement
public void removeVertexListener(VertexListener l)
removeVertexListener
in interface GridElement
public void fireVertexEvent(VertexEvent dv)
fireVertexEvent
in interface GridElement
public void addGriddedRegionListener(GriddedRegionListener l)
addGriddedRegionListener
in interface GriddedRegion
public void removeGriddedRegionListener(GriddedRegionListener l)
removeGriddedRegionListener
in interface GriddedRegion
public void fireGriddedRegionEvent(GriddedRegionEvent dv)
fireGriddedRegionEvent
in interface GriddedRegion
public int childCount()
childCount
in interface GridElementStorage
public RepositoryElement getCoordinateRepositoryElement()
GridElementStorage
getCoordinateRepositoryElement
in interface GridElementStorage
public void setCoordinateRepositoryElement(RepositoryElement elem)
GridElementStorage
setCoordinateRepositoryElement
in interface GridElementStorage
public void addChildGridElement(RepositoryElement elem)
GridElementStorage
addChildGridElement
in interface GridElementStorage
public void removeChildGridElement(RepositoryElement elem)
GridElementStorage
removeChildGridElement
in interface GridElementStorage
public RepositoryElement getChildGridElement(int k)
GridElementStorage
getChildGridElement
in interface GridElementStorage
public void setParentGridElement(RepositoryElement elem)
GridElementStorage
setParentGridElement
in interface GridElementStorage
public void importAsChildUNG(java.lang.String idxident, java.io.File hdrFile, java.io.File datFile, int nskips)
importAsChildUNG
in interface GridElementStorage
public void importAsChildUNG(java.util.Set targets, java.io.File hdrFile, java.io.File datFile, int nskips)
importAsChildUNG
in interface GridElementStorage
public void importVerticesUNG(java.lang.String idxident, java.io.File datFile, int nskips)
importVerticesUNG
in interface GridElementStorage
public void importVerticesUNG(java.lang.String idxident, java.io.File datFile)
importVerticesUNG
in interface GridElementStorage
public void importAsChildUNG(java.io.File headrFile, java.io.File datFile)
importAsChildUNG
in interface GridElementStorage
public void importAsChildUNG(java.io.File headrFile, java.io.File datFile, int nskips)
importAsChildUNG
in interface GridElementStorage
public java.io.File[] exportUNG(java.io.File hdrFile, java.io.File datFile)
GridElementStorage
exportUNG
in interface GridElementStorage
public java.io.File[] exportUNG()
GridElementStorage
exportUNG
in interface GridElementStorage
public void addAllChildGridElements(java.util.Vector elems)
GridElementStorage
addAllChildGridElements
in interface GridElementStorage
public java.util.Vector getChildGridElements()
GridElementStorage
getChildGridElements
in interface GridElementStorage
public void clearChildGrids()
GridElementStorage
clearChildGrids
in interface GridElementStorage
public void clearGridCoordinates()
GridElementStorage
clearGridCoordinates
in interface GridElementStorage
public DblMatrix getXData()
GridElementStorage
getXData
in interface GridElementStorage
public DblMatrix getYData()
GridElementStorage
getYData
in interface GridElementStorage
public DblMatrix getCoords()
getCoords
in interface GridElement
public void setLabel(java.lang.String Label)
GridElementStorage
setLabel
in interface GridElementStorage
setLabel
in interface GridElement
public void setAlternate(java.lang.String Alternate)
GridElementStorage
setAlternate
in interface GridElementStorage
public void setLongName(java.lang.String LongName)
GridElementStorage
setLongName
in interface GridElementStorage
public java.lang.String getLabel()
getLabel
in interface GridElement
public java.lang.String getComment()
AbstractRepositoryStorage
getComment
in interface RepositoryStorage
getComment
in class RepositoryStorageXML
public java.lang.String getAlternate()
GridElementStorage
getAlternate
in interface GridElementStorage
public java.lang.String getLongName()
GridElementStorage
getLongName
in interface GridElementStorage
public java.util.Iterator gridIterator()
gridIterator
in interface GriddedRegion
public int getGridCount()
getGridCount
in interface GriddedRegion
public GridElement getGridElement(int index)
getGridElement
in interface GriddedRegion
public GridElement getParent()
getParent
in interface GridElement
public java.util.Vector verticesOf()
verticesOf
in interface GridElement
public java.util.Vector subFacesOf()
subFacesOf
in interface GridElement
public int getDimension()
getDimension
in interface GridElement
public java.lang.Integer getIndex(int j)
getIndex
in interface GridElement
public int size()
size
in interface GridElement
public DblMatrix getCoordsOf(java.lang.Integer row)
getCoordsOf
in interface GridElement
public DblMatrix getPerimeter()
getPerimeter
in interface GridElement
public DblMatrix getVolume()
getVolume
in interface GridElement
public DblMatrix getCentroid()
getCentroid
in interface GridElement
Copyright © 2011, 2013. Daniel P. Dougherty