List of usage examples for org.apache.commons.lang NotImplementedException NotImplementedException
public NotImplementedException(Class clazz)
NotImplementedException
referencing the specified class. From source file:gr.abiss.calipso.dto.AbstractQuerySearch.java
/** * Leftovers from AbstractSearch// w w w . j ava2 s. com */ public DetachedCriteria getDetachedCriteriaForCount() { throw new NotImplementedException("Instances of " + getClass() + " use HQL instead of Criteria"); }
From source file:com.impetus.kundera.query.QueryImpl.java
@Override public Object getSingleResult() { throw new NotImplementedException("TODO"); }
From source file:blue.lapis.pore.impl.entity.PoreAbstractHorse.java
@Override public void setDomestication(int level) { throw new NotImplementedException("TODO"); }
From source file:ar.com.zauber.commons.secret.impl.NullSecretsMap.java
/** @see SecretsMap#getExpirationDatePolicy() */ public final ExpirationDatePolicy getExpirationDatePolicy() { throw new NotImplementedException("not implemented"); }
From source file:com.opengamma.maths.lowlevelapi.datatypes.primitive.SparseMatrix.java
/** * Constructs a sparse matrix from double array of arrays data. * @param indata is an array of arrays containing data to be turned into a sparse matrix representation * @param m is the number of rows in the matrix (use if there are empty rows in indata and a matrix of a specific size is needed for conformance) * @param n is the number of columns in the matrix (use if there are empty columns in indata and a matrix of a specific size is needed for conformance) * @param t is an enumerated of type majorness, takes values "column" and "row" depending on anticipated access pattern. *///ww w . ja va 2 s . c o m public SparseMatrix(double[][] indata, int m, int n, majorness t) { if (MatrixPrimitiveUtils.isRagged(indata)) { throw new NotImplementedException("Construction from a ragged array of arrays is not implemented"); } // test sanity of requested data lengths if (indata.length > m) { throw new IllegalArgumentException( "Bad input to constructor, final matrix with " + m + " rows requested but the input data has " + indata.length + " and there is no sane way to truncate."); } if (indata[0].length > n) { throw new IllegalArgumentException("Bad input to constructor, final matrix with " + n + " columns requested but the input data has " + indata[0].length + " and there is no sane way to truncate."); } // hold final matrix size int s1 = indata.length; int s2 = indata[0].length; if (indata.length != m) { s1 = m; if (indata[0].length != n) { s2 = n; } } // size the matrix correctly for the construction double[][] tmp = new double[s1][s2]; // unwind for (int i = 0; i < indata.length; i++) { for (int j = 0; j < indata[0].length; j++) { tmp[i][j] = indata[i][j]; } } // test nnz and return something sane?! 0.6 is a magic number roughly based on memory density estimates // TODO: Come up with a more intelligent estimate of memory density patterns to pick optimal formats. Load testing needed. int nnz = MatrixPrimitiveUtils.numberOfNonZeroElementsInMatrix(tmp); double density = ((double) nnz / (s1 * s2)); if (density < 0.6) { if (t.equals(majorness.row)) { _type = new CompressedSparseRowFormatMatrix(tmp); } else { _type = new CompressedSparseColumnFormatMatrix(tmp); } } else { _type = new SparseCoordinateFormatMatrix(tmp); } }
From source file:com.kenshoo.integrations.plugins.connectors.util.SeekableInputStream.java
@Override public void mark(int readLimit) { throw new NotImplementedException("Mark is not supported"); }
From source file:com.yolodata.tbana.cascading.splunk.SplunkTap.java
@Override public TupleEntryCollector openForWrite(FlowProcess<JobConf> flowProcess, OutputCollector outputCollector) throws IOException { throw new NotImplementedException("Write to Splunk not implemented"); }
From source file:com.jabyftw.lobstercraft.services.services_event.PlayerJoinsCityEvent.java
@Override public void setCancelled(boolean cancel) { throw new NotImplementedException("You should use setResult(CityStructure.JoinCityResponse)"); }
From source file:com.opengamma.analytics.financial.model.volatility.smile.function.SABRJohnsonVolatilityFunction.java
@Override public Function1D<SABRFormulaData, Double> getVolatilityFunction(final EuropeanVanillaOption option, final double forward) { Validate.notNull(option, "option"); final double k = option.getStrike(); final double t = option.getTimeToExpiry(); final Function1D<CEVFunctionData, Double> priceFunction = CEV_FUNCTION.getPriceFunction(option); return new Function1D<SABRFormulaData, Double>() { @SuppressWarnings("synthetic-access") @Override/* ww w . jav a 2 s . c o m*/ public final Double evaluate(final SABRFormulaData data) { Validate.notNull(data, "data"); final double alpha = data.getAlpha(); final double beta = data.getBeta(); final double rho = data.getRho(); final double nu = data.getNu(); if (CompareUtils.closeEquals(nu, 0, EPS)) { if (CompareUtils.closeEquals(beta, 1.0, EPS)) { return alpha; // this is just log-normal } throw new NotImplementedException("Have not implemented the case where nu = 0, beta != 0"); } if (beta > 0) { final double sigmaDD = alpha * beta * Math.pow(forward, beta - 1); final double eta = (1 - beta) / beta * forward; double sigmaBlend; if (CompareUtils.closeEquals(forward, k, EPS)) { sigmaBlend = sigmaDD; } else { final double z = nu / sigmaDD * Math.log((forward + eta) / (k + eta)); final double sigmaBBF = sigmaDD * z / Math.log((z - rho + Math.sqrt(1 - 2 * rho * z + z * z)) / (1 - rho)); final double sigmaTrunc = sigmaDD * Math.pow(1 - 4 * rho * z + (4.0 / 3.0 + 5 * rho * rho) * z * z, 1.0 / 8.0); final double w = Math.min(1.0, 1.0 / nu / Math.sqrt(t)); sigmaBlend = 1.0 / (w / sigmaBBF + (1 - w) / sigmaTrunc); } sigmaBlend *= 1 + (rho * nu * sigmaDD / 4 + (2 - 3 * rho * rho) * nu * nu / 24) * t; final double sigmaCEV = sigmaBlend * Math.pow(forward, 1 - beta) / beta; final CEVFunctionData cevData = new CEVFunctionData(forward, 1, sigmaCEV, beta); final double price = priceFunction.evaluate(cevData); return BLACK_IMPLIED_VOL.getImpliedVolatility(new BlackFunctionData(forward, 1, sigmaCEV), option, price); } throw new NotImplementedException("Have not implemented the case where b <= 0"); } }; }
From source file:AIR.Common.Web.Session.ContentLoggingHttpServletRequest.java
@Override public String getParameter(String name) { // TODO Need to implement parameters throw new NotImplementedException( "For proper function, parameter parsing must be implemented on ContentLoggingHttpServletRequest"); }