1 package gov.sandia.geotess.examples.customdata;
3 import java.io.DataInputStream;
4 import java.io.DataOutputStream;
5 import java.io.IOException;
6 import java.util.HashMap;
7 import java.util.Scanner;
15 public class PhaseData extends HashMap<GeoAttributes, Double>
40 primary = input.readBoolean();
42 put(a, input.readDouble());
55 output.writeBoolean(primary);
57 output.writeDouble(
get(a));
69 primary = input.nextBoolean();
71 put(a, input.nextDouble());
82 output.append(primary);
85 Double value =
get(a);
87 output.append(value ==
null ?
"NaN"
88 : Double.toString(value));