Integer dimensions = (Integer) prop.getValue(pDim);
/*
* Advanced properties, these may not necessarily be configued, so
*/
ApproximatorFactory approxFactory = (ApproximatorFactory) prop.getValue(pApproximator);
NodeFactory nodeFactory = (NodeFactory) prop.getValue(pNodeFactory);
Sign encodingSign = (Sign) prop.getValue(pEncodingSign);
Float encodingDistribution = (Float) prop.getValue(pEncodingDistribution);
Float radius = (Float) prop.getValue(pRadius);
Float noise = (Float) prop.getValue(pNoise);
if (nodeFactory != null) {
ef.setNodeFactory(nodeFactory);
}
if (approxFactory != null) {
ef.setApproximatorFactory(approxFactory);
}
if (noise != null) {
ApproximatorFactory f=ef.getApproximatorFactory();
if (f instanceof WeightedCostApproximator.Factory) {
((WeightedCostApproximator.Factory)f).setNoise(noise);
}
}