00001 package SctData;
00002
00003 import Sct.*;
00004
00009 public abstract class ScanResult implements Serializable {
00011 public ScanResult(ResultHeader header, ModuleConfiguration moduleConfig, ScanPoints points) {
00012 this.header = header;
00013 this.moduleConfig = moduleConfig;
00014 this.points = points;
00015 }
00016
00020 public ScanResult(ScanResult scan) {
00021
00022 }
00023
00024 public ResultHeader getHeader() {
00025 return header;
00026 }
00027
00028 public ModuleConfiguration getConfiguration() {
00029 return moduleConfig;
00030 }
00031
00032 public ScanPoints getPoints() {
00033 return points;
00034 }
00035
00036 protected void _read(IStream s, ObjectManager o) throws java.io.IOException {
00037 header = (ResultHeader)o.readObject(s, "Header", "SctData.ResultHeader");
00038 points = (ScanPoints)o.readObject(s, "ScanPoints", "SctData.ScanPoints");
00039 moduleConfig = (ModuleConfiguration)o.readObject(s, "Configuration", "SctData.ModuleConfiguration");
00040 }
00041
00042 public void write(OStream s, ObjectManager o) throws java.io.IOException {
00043 o.writeObject(s, "Header", header, false);
00044 o.writeObject(s, "ScanPoints", points, false);
00045 o.writeObject(s, "Configuration", moduleConfig, false);
00046 }
00047
00049 protected ScanResult(IStream s, ObjectManager o) throws java.io.IOException {
00050 _read(s, o);
00051 }
00052
00053 protected ResultHeader header;
00054 protected ModuleConfiguration moduleConfig;
00055 protected ScanPoints points;
00056 }