Package gda.server.collisionAvoidance
Class CollisionCheckerBase
java.lang.Object
gda.factory.FindableBase
gda.server.collisionAvoidance.CollisionCheckerBase
- All Implemented Interfaces:
Findable,CollisionChecker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String[]checkConfigurationPermitted(Double[] position) String[]Checks to see if a move is safe.String[]Double[]voidsetParamNames(String[] paramNames) voidsetSampleSize(Double[] sampleSize) abstract StringtoString()Methods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setName
-
Constructor Details
-
CollisionCheckerBase
public CollisionCheckerBase()
-
-
Method Details
-
checkMove
public String[] checkMove(Double[] _currentRangeStart, Double[] _currentRangeEnd, Double[] _requestedConfiguration) throws CacException Description copied from interface:CollisionCheckerChecks to see if a move is safe. This will be called by the CAC with which the checker will have been registered.- Specified by:
checkMovein interfaceCollisionChecker- Parameters:
_currentRangeStart- Each value will be either the corresponding field's current position or, if the field is moving, the position where it began its move._currentRangeEnd- Each value will be null unless the field is moving, when it will be the position where it should finish its move._requestedConfiguration- The requested final position. NOTE: currently some values are allowed to by None, this will be removed ASAP.- Returns:
- Null if the move is allowed, otherwise a string describing why it is not.
- Throws:
CacException
-
getSampleSize
- Returns:
- the sample size
-
setSampleSize
- Parameters:
sampleSize-- Throws:
CacException
-
getParamNames
- Returns:
- list of parameter names
-
setParamNames
- Parameters:
paramNames- the partameter names
-
checkConfigurationPermitted
- Parameters:
position-- Returns:
- null if okay, else string with reason.
-
toString
-