public final class MultiStagePosition
extends java.lang.Object
| Constructor and Description | 
|---|
MultiStagePosition()
Default constructor. 
 | 
MultiStagePosition(java.lang.String xyStage,
                  double x,
                  double y,
                  java.lang.String zStage,
                  double z)
Convenient constructor where the motion system consists of one XY stage and one focus stage. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(StagePosition sp)
Add one stage position point 
 | 
boolean | 
equals(java.lang.Object alt)
Compares this MultiStagePosition to another, and returns true if they
 are equal in all aspects. 
 | 
static MultiStagePosition | 
fromPropertyMap(PropertyMap pmap)
Generates a multistagePosition from the given PropertyMap 
 | 
StagePosition | 
get(int idx)
Return stage position based on index 
 | 
StagePosition | 
get(java.lang.String stageName)
Returns position for a specific stage. 
 | 
java.lang.String | 
getDefaultXYStage()  | 
java.lang.String | 
getDefaultZStage()  | 
int | 
getGridColumn()
Returns rectangular grid column. 
 | 
int | 
getGridRow()
Returns rectangular grid row. 
 | 
java.lang.String | 
getLabel()
Returns position label. 
 | 
java.lang.String | 
getProperty(java.lang.String key)
Returns property value for a given key (name) 
 | 
java.lang.String[] | 
getPropertyNames()
Return the array of property keys (names) associated with this position 
 | 
double | 
getX()
Returns "X" coordinate of the position. 
 | 
double | 
getY()
Returns "Y" coordinate of the position. 
 | 
double | 
getZ()
Returns "Z" - focus coordinate of the position. 
 | 
static void | 
goToPosition(MultiStagePosition msp,
            mmcorej.CMMCore core_)
Moves all stages to the specified positions. 
 | 
int | 
hashCode()  | 
boolean | 
hasProperty(java.lang.String key)
Checks if the position has a particular property 
 | 
static MultiStagePosition | 
newInstance(MultiStagePosition aMps)
Copy constructor. 
 | 
void | 
remove(StagePosition sp)
Removed one stage position point 
 | 
void | 
setDefaultXYStage(java.lang.String stage)
Defines which stage serves as the XY motion control device 
 | 
void | 
setDefaultZStage(java.lang.String stage)
Defines which stage serves as focus control 
 | 
void | 
setGridCoordinates(int row,
                  int col)
Sets grid parameters for the rectangular grid 
 | 
void | 
setLabel(java.lang.String lab)
Sets position label (such as well name, etc.) 
 | 
void | 
setProperty(java.lang.String key,
           java.lang.String value)
Add a generalized property-value par to the position. 
 | 
int | 
size()
Number of stages 
 | 
PropertyMap | 
toPropertyMap()  | 
java.lang.String | 
toString()  | 
public MultiStagePosition()
public MultiStagePosition(java.lang.String xyStage,
                          double x,
                          double y,
                          java.lang.String zStage,
                          double z)
xyStage - namex - - coordinate in micronsy - - coordinate in micronszStage - namez - - focus position in micronspublic static MultiStagePosition newInstance(MultiStagePosition aMps)
aMps - - another instance of the MultiStagePoswition classpublic void add(StagePosition sp)
sp - Stageposition to be addedpublic void remove(StagePosition sp)
sp - stage position point to be removedpublic int size()
public StagePosition get(int idx)
idx - - position indexpublic void setProperty(java.lang.String key,
                        java.lang.String value)
key - value - public java.lang.String[] getPropertyNames()
public boolean hasProperty(java.lang.String key)
key - public java.lang.String getProperty(java.lang.String key)
key - public StagePosition get(java.lang.String stageName)
stageName - public java.lang.String getLabel()
public void setLabel(java.lang.String lab)
lab - new MultiStagePosition Labelpublic void setDefaultZStage(java.lang.String stage)
stage - new focus stagepublic java.lang.String getDefaultZStage()
public java.lang.String getDefaultXYStage()
public void setDefaultXYStage(java.lang.String stage)
stage - new default XY stagepublic static void goToPosition(MultiStagePosition msp, mmcorej.CMMCore core_) throws java.lang.Exception
msp - position to move tocore_ - - microscope APIjava.lang.Exception - If there is an error moving the stage.public double getX()
public double getY()
public double getZ()
public void setGridCoordinates(int row,
                               int col)
row - col - public int getGridRow()
public int getGridColumn()
public boolean equals(java.lang.Object alt)
equals in class java.lang.Objectalt - The MultiStagePosition to compare against.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic PropertyMap toPropertyMap()
public static MultiStagePosition fromPropertyMap(PropertyMap pmap)
pmap - PropertyMap