public class DropletObserverResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Constructor and Description |
---|
DropletObserverResult(int currentDroplet,
double[] dropletOffsets)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DropletObserverResult |
clone() |
int |
getCurrentDroplet()
Returns the ID of the currently measured droplet.
|
double |
getCurrentOffset()
Returns the estimated offset of the currently measured droplet.
|
double |
getDropletOffset(int dropletID)
Returns the offset of the droplet with the given ID.
|
double[] |
getDropletOffsets()
Returns the estimated current droplet offsets.
|
double |
getMeanOffset()
Returns the mean droplet offset.
|
int |
getNumDroplets()
Returns the number of droplets.
|
public DropletObserverResult(int currentDroplet, double[] dropletOffsets)
currentDroplet
- The ID of the current droplet. Must be smaller than dropletOffsets.length.dropletOffsets
- The estimated current droplet offsets.public DropletObserverResult clone()
clone
in class java.lang.Object
public double[] getDropletOffsets()
public double getDropletOffset(int dropletID) throws java.lang.IndexOutOfBoundsException
dropletID
- ID of droplet for which the offset should be returned.java.lang.IndexOutOfBoundsException
- Thrown if droplet ID small zero or greater equal getNumDroplets()
public int getNumDroplets()
public int getCurrentDroplet()
public double getCurrentOffset()
public double getMeanOffset()