public class ElasticReflector extends java.lang.Object implements StepAmender
Constructor and Description |
---|
ElasticReflector(Substrate substrate)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
amendStep(Walker walker,
double[] subsCoords,
double[] rawOffset,
double[] rawStep,
double[] normal,
double[] d,
double origLength,
double[] toBarrier,
double[] amended,
double[] unamended,
double[] L,
double time,
int n)
amends the step for the walker by relecting it elastically off
the appropriate membrane.
|
public ElasticReflector(Substrate substrate)
substrate
- the substrate the amender belongs topublic void amendStep(Walker walker, double[] subsCoords, double[] rawOffset, double[] rawStep, double[] normal, double[] d, double origLength, double[] toBarrier, double[] amended, double[] unamended, double[] L, double time, int n)
amendStep
in interface StepAmender
walker
- the walkerstep
- the step the walker would takenormal
- the normal of the membraned
- distance of plane from origin (array of length 1)origLength
- the length of the original step before ANY amendmenttoBarrier
- space to store step that will take the walker to the barrier but not through itamended
- space to store amended component of step.unamended
- space to store the step through the barrier.