public class AgnosticScan extends java.lang.Object implements SyntheticScan
Constructor and Description |
---|
AgnosticScan(SimulableScheme scheme,
Walker[] walker,
Substrate substrate)
constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCompartmentalSignals(boolean intra)
gets the signals from the summations of the displacements in
the walkers.
|
int |
getNumMeasurements()
number of measurements in the scan.
|
double |
getPhaseShift(Walker walker,
double t,
int dir,
double last)
calculates a phase shift for the given spin at the given time in
the given direction
|
ScanFactory.ScanType |
getScanType()
returns an agnostic identifier
|
double[] |
getSignals()
gets the signals from the summations of the displacements in
the walkers.
|
static void |
main(java.lang.String[] args)
main entrypoint.
|
void |
update(int t)
updates the scan variables in each timestep
|
public AgnosticScan(SimulableScheme scheme, Walker[] walker, Substrate substrate)
scheme
- SimulableScheme to ask for gradient strengthswalker
- array of spinspublic double[] getCompartmentalSignals(boolean intra)
SyntheticScan
getCompartmentalSignals
in interface SyntheticScan
public int getNumMeasurements()
getNumMeasurements
in interface SyntheticScan
public double getPhaseShift(Walker walker, double t, int dir, double last)
getPhaseShift
in interface SyntheticScan
walker
- the spint
- the current timedir
- direction index (line in scheme file)last
- time of last callpublic ScanFactory.ScanType getScanType()
getScanType
in interface SyntheticScan
public double[] getSignals()
SyntheticScan
getSignals
in interface SyntheticScan
public void update(int t)
SyntheticScan
update
in interface SyntheticScan
t
- the timepublic static void main(java.lang.String[] args)
args
-