Package cnuphys.magfield
Class TestData
java.lang.Object
cnuphys.magfield.TestData
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat[][]
float[][]
float[]
float[]
float[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
count()
static TestData
serialRead
(String fullfn) Reads a serializable object from a file.static void
serialWrite
(TestData obj, String fullfn) serialWrite writes out a TestData object to a file.
-
Field Details
-
torusFile
-
solenoidFile
-
javaVersion
-
x
public float[] x -
y
public float[] y -
z
public float[] z -
result
public float[][] result -
testResult
public transient float[][] testResult
-
-
Constructor Details
-
TestData
public TestData(int n)
-
-
Method Details
-
count
public int count() -
serialRead
Reads a serializable object from a file.- Parameters:
fullfn
- the full path.- Returns:
- the deserialized object.
-
serialWrite
serialWrite writes out a TestData object to a file.- Parameters:
obj
- the serializable object.fullfn
- the full path.
-