visad.ss
Class SSCellData
- java.lang.Object
-
- visad.ss.SSCellData
-
public class SSCellData extends java.lang.ObjectClass for encapsulating all needed information about a Data object present in a BasicSSCell.
-
-
Constructor Summary
Constructors Constructor and Description SSCellData(int id, BasicSSCell ssCell, DataReferenceImpl ref, ConstantMap[] cmaps, java.lang.String source, int type, boolean checkErrors)Constructs a new SSCellData object, for encapsulating a Data object and related information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddestroy()Stops monitoring the data for changes.ConstantMap[]getConstantMaps()Gets the ConstantMaps associated with the reference.DatagetData()Gets the Data object.java.lang.String[]getErrors()Gets the errors encountered when generating the Data object.intgetId()Gets the ID number.DataReferenceImplgetReference()Gets the DataReference pointing to the data.RemoteDataReferenceImplgetRemoteReference()Gets the remote copy of the DataReference.java.lang.StringgetSource()Gets the source of the data, in String form.intgetSourceType()Gets the source type of the data.java.lang.StringgetVariableName()Gets the variable name used for the data in the formula manager.booleanisInited()Returns whether this data's cell has finished initializing.booleanothersDepend()Gets whether other data depends on this data.voidsetData(Data data)Sets the data.voidsetDependencies(Real real)Sets whether others depend on this data.voidsetError(java.lang.String error)Sets a single error for the Data object.voidsetErrors(java.lang.String[] errors)Sets the errors for the Data object.
-
-
-
Constructor Detail
-
SSCellData
public SSCellData(int id, BasicSSCell ssCell, DataReferenceImpl ref, ConstantMap[] cmaps, java.lang.String source, int type, boolean checkErrors) throws VisADException, java.rmi.RemoteExceptionConstructs a new SSCellData object, for encapsulating a Data object and related information.- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
Method Detail
-
getId
public int getId()
Gets the ID number.
-
getData
public Data getData()
Gets the Data object.
-
getReference
public DataReferenceImpl getReference()
Gets the DataReference pointing to the data. Changes to the reference's data automatically propagate to all linked cells.
-
getConstantMaps
public ConstantMap[] getConstantMaps()
Gets the ConstantMaps associated with the reference.
-
getRemoteReference
public RemoteDataReferenceImpl getRemoteReference()
Gets the remote copy of the DataReference.
-
getSource
public java.lang.String getSource()
Gets the source of the data, in String form.
-
getSourceType
public int getSourceType()
Gets the source type of the data.- Returns:
- Source type. Valid types are:
- BasicSSCell.UNKNOWN_SOURCE
- BasicSSCell.DIRECT_SOURCE
- BasicSSCell.URL_SOURCE
- BasicSSCell.FORMULA_SOURCE
- BasicSSCell.RMI_SOURCE
- BasicSSCell.REMOTE_SOURCE
-
getVariableName
public java.lang.String getVariableName()
Gets the variable name used for the data in the formula manager.
-
getErrors
public java.lang.String[] getErrors()
Gets the errors encountered when generating the Data object.
-
othersDepend
public boolean othersDepend()
Gets whether other data depends on this data.
-
isInited
public boolean isInited()
Returns whether this data's cell has finished initializing.
-
setData
public void setData(Data data) throws VisADException, java.rmi.RemoteException
Sets the data.- Throws:
VisADExceptionjava.rmi.RemoteException
-
setError
public void setError(java.lang.String error)
Sets a single error for the Data object.
-
setErrors
public void setErrors(java.lang.String[] errors)
Sets the errors for the Data object.
-
setDependencies
public void setDependencies(Real real)
Sets whether others depend on this data.
-
destroy
public void destroy()
Stops monitoring the data for changes.
-
-
DMelt 3.0 © DataMelt by jWork.ORG