BTVI data

This is Mike's original example, a beam profile in an SDDS file:

"index_35.gif"

"index_36.gif"

To create a corresponding Java object, we use a method of the directory object and the conventional syntax (the "@" character can be thought of as replacing the "." in Java).

"index_37.gif"

"index_38.gif"


To find out what we can do with this object, we list its methods, just as we did with the SDDSdir object:

"index_39.gif"

boolean containsArray(String)
boolean containsColumn(String)
boolean containsParameter(String)
boolean equals(Object)
String[] getArrayNames()
cern.accsoft.sdds.core.SDDSArray[] getArrays()
int getArraysCount()
cern.accsoft.sdds.core.SDDSArray getArray(String)
Object getArrayValues(String)
Class getClass()
String[] getColumnNames()
cern.accsoft.sdds.core.SDDSColumn[] getColumns()
int getColumnsCount()
cern.accsoft.sdds.core.SDDSColumn getColumn(String)
Object getColumnValues(String)
String[] getParameterNames()
cern.accsoft.sdds.core.SDDSParameter[] getParameters()
int getParametersCount()
cern.accsoft.sdds.core.SDDSParameter getParameter(String)
Object getParameterValue(String)
int getRowCount()
int hashCode()
static boolean isSDDSFileName(String)
void notify()
void notifyAll()
void readFile() throws java.io.IOException
void removeArray(String)
void removeColumn(String)
cern.accsoft.sdds.core.SDDSArray setArray(String, Object)
cern.accsoft.sdds.core.SDDSArray setArray(String, Object, int[])
cern.accsoft.sdds.core.SDDSArray setArray(String, Object, int[], String, String, String, String, String, String)
cern.accsoft.sdds.core.SDDSArray setArray(String, Object, String, String, String, String, String, String)
cern.accsoft.sdds.core.SDDSColumn setColumn(String, Object)
cern.accsoft.sdds.core.SDDSColumn setColumn(String, Object, String, String, String, String, String)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, boolean)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, byte)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, char)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, double)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, float)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, int)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, long)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, Object)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, Object, String, String, String, String, String)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, short)
cern.accsoft.sdds.core.SDDSParameter setParameter(String, String)
void setRowCount(int)
String toString()
void wait(long, int) throws InterruptedException
void wait(long) throws InterruptedException
void wait() throws InterruptedException
void writeFile() throws java.io.IOException

Technical aside:  Methods returns its values wrapped in TableForm for display.  We can remove this with First[Methods[ ...]] if we want to work with them as strings.

There are a lot of these.  Even without the documentation, the names of the methods often suggest what they do.

"index_40.gif"

String[] getArrayNames()
cern.accsoft.sdds.core.SDDSArray[] getArrays()
int getArraysCount()
cern.accsoft.sdds.core.SDDSArray getArray(String)
Object getArrayValues(String)
Class getClass()
String[] getColumnNames()
cern.accsoft.sdds.core.SDDSColumn[] getColumns()
int getColumnsCount()
cern.accsoft.sdds.core.SDDSColumn getColumn(String)
Object getColumnValues(String)
String[] getParameterNames()
cern.accsoft.sdds.core.SDDSParameter[] getParameters()
int getParametersCount()
cern.accsoft.sdds.core.SDDSParameter getParameter(String)
Object getParameterValue(String)
int getRowCount()

"index_41.gif"

"index_42.gif"

"index_43.gif"

"index_44.gif"

"index_45.gif"

"index_46.gif"

"index_47.gif"

"index_48.gif"

"index_49.gif"

"index_50.gif"

"index_51.gif"

"index_52.gif"

In Mike's original example, the data inside is assigned to a few variables.

"index_53.gif"

You can then do what you like with them:

"index_54.gif"

"index_55.gif"

"index_56.gif"

"index_57.gif"

"index_58.gif"

"index_59.gif"


Created by Wolfram Mathematica 6.0  (05 November 2007) Valid XHTML 1.1!