Some Java

package org.xsil.XSIL;
public class TimeSeries extends XSIL {
double startTime = 0.0;
double endTime = 1.0;
int ndata = 0;
double[] data;
public void constructor(Element e){
...
for(int ichild=0; ichild < children.size(); ichild++){
Object o = children.elementAt(ichild);
if(o instanceof Param){
Param p = (Param)o;
if(p.getName().equals("StartTime")){
startTime = new Double(p.getText()).doubleValue();
}
if(p.getName().equals("EndTime")){
endTime = new Double(p.getText()).doubleValue();
}
}
if(o instanceof Array && ((Array)o).getNdim() == 1){
....

inherited tree structure

base objects

Previous slide Next slide Back to first slide View graphic version