visad.data
Class DataNode
- java.lang.Object
-
- visad.data.DataNode
-
public abstract class DataNode extends java.lang.ObjectAbstract class for adapting a VisAD data object to the "Visitor" design pattern. This class knows how to traverse an arbitrary VisAD data object.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract DataVisitoraccept(DataVisitor visitor)Accept a visitor and traverse the data object.static DataNodecreate(Data data)Factory method for creating an instance of the appropriate type.
-
-
-
Method Detail
-
create
public static DataNode create(Data data) throws UnimplementedException
Factory method for creating an instance of the appropriate type.- Parameters:
data- The VisAD data object to be traversed.- Returns:
- A DataNode that knows how to traverse the VisAD data object.
- Throws:
UnimplementedException- A (soon to be implemented) method isn't implemented yet.
-
accept
public abstract DataVisitor accept(DataVisitor visitor) throws UnimplementedException, BadFormException, VisADException, java.rmi.RemoteException
Accept a visitor and traverse the data object.- Parameters:
visitor- The object that will have it'svisit()method called for each subcomponent of the VisAD data object.- Returns:
visitorfor convenience.- Throws:
UnimplementedException- A (soon to be implemented) method isn't implemented yet.BadFormException- The VisAD data object doesn't "fit" the data model used byvisitor.VisADException- Problem in core VisAD (probably couldn't create some VisAD object).java.rmi.RemoteException- Problem accessing the VisAD data object.- See Also:
DataVisitor
-
-
DMelt 3.0 © DataMelt by jWork.ORG