Examples of presentValue()


Examples of org.apache.felix.service.command.Parameter.presentValue()

                    if (i >= 0)
                    {
                        // parameter present
                        parms.remove(i);
                        Object value = p.presentValue();
                        if (Parameter.UNSPECIFIED.equals(value))
                        {
                            if (i >= parms.size())
                                return null; // missing parameter, so try other methods
                            value = parms.remove(i);
View Full Code Here

Examples of org.apache.felix.service.command.Parameter.presentValue()

                                Parameter param = (Parameter) as[a];
                                for (String name : param.names())
                                {
                                    if (name.equals(item))
                                    {
                                        if (param.presentValue() == null || param.presentValue().equals(Parameter.UNSPECIFIED))
                                        {
                                            itArgs.remove(); // parameter name
                                            assert itArgs.hasNext();
                                            Object value = itArgs.next(); // the value
                                            itArgs.remove(); // remove it
View Full Code Here

Examples of org.apache.felix.service.command.Parameter.presentValue()

                                Parameter param = (Parameter) as[a];
                                for (String name : param.names())
                                {
                                    if (name.equals(item))
                                    {
                                        if (param.presentValue() == null || param.presentValue().equals(Parameter.UNSPECIFIED))
                                        {
                                            itArgs.remove(); // parameter name
                                            assert itArgs.hasNext();
                                            Object value = itArgs.next(); // the value
                                            itArgs.remove(); // remove it
View Full Code Here

Examples of org.apache.felix.service.command.Parameter.presentValue()

                                            Object value = itArgs.next(); // the value
                                            itArgs.remove(); // remove it
                                            out[argIndex] = coerce(session, target,
                                                types[argIndex], value);
                                        }
                                        else if (param.presentValue() != null)
                                        {
                                            itArgs.remove();
                                            out[argIndex] = coerce(session, target,
                                                types[argIndex], param.presentValue());
                                        }
View Full Code Here

Examples of org.apache.felix.service.command.Parameter.presentValue()

                                        }
                                        else if (param.presentValue() != null)
                                        {
                                            itArgs.remove();
                                            out[argIndex] = coerce(session, target,
                                                types[argIndex], param.presentValue());
                                        }
                                        break;
                                    }
                                }
                            }
View Full Code Here

Examples of org.jquantlib.pricingengines.hybrid.DiscretizedConvertible.presentValue()

        final Lattice lattice = new TsiveriotisFernandesLattice<T>(tree, riskFreeRate, maturity, timeSteps_, creditSpread, v, q);
        final DiscretizedConvertible convertible = new DiscretizedConvertible((ConvertibleBondOption.Arguments)a, bs, new TimeGrid(maturity, timeSteps_));

        convertible.initialize(lattice, maturity);
        convertible.rollback(0.0);
        r.value = convertible.presentValue();
    }

}
View Full Code Here

Examples of org.jquantlib.pricingengines.hybrid.DiscretizedConvertible.presentValue()

                new DiscretizedConvertible(this.a, bs,
                                                 new TimeGrid(maturity, timeSteps_));

        convertible.initialize(lattice, maturity);
        convertible.rollback(0.0);
        this.r.value = convertible.presentValue();
    }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.