Package name.abuchen.portfolio.model

Examples of name.abuchen.portfolio.model.InvestmentVehicle


        classification.accept(new Visitor()
        {
            @Override
            public void visit(Classification classification, Assignment assignment)
            {
                InvestmentVehicle vehicle = assignment.getInvestmentVehicle();

                if (vehicle instanceof Security)
                    addSecurity(pseudoClient, client, (Security) vehicle, assignment.getWeight());
                else if (vehicle instanceof Account)
                    addAccount(pseudoClient, (Account) vehicle, assignment.getWeight());
View Full Code Here


                {
                    node2series.put(node, new SeriesBuilder(node, dates.size()));
                }
                else
                {
                    InvestmentVehicle vehicle = node.getAssignment().getInvestmentVehicle();

                    VehicleBuilder builder = vehicle2builder.get(vehicle);
                    if (builder == null)
                    {
                        builder = new VehicleBuilder();
View Full Code Here

        if (node.getWeight() == 0)
            node.getParent().removeChild(node);

        // change total weight as recorded in the model

        InvestmentVehicle investmentVehicle = node.getAssignment().getInvestmentVehicle();
        final int totalWeight = getModel().getWeightByInvestmentVehicle(investmentVehicle) - change;
        getModel().setWeightByInvestmentVehicle(investmentVehicle, totalWeight);

        // check if change is fixing weight errors -> no new unassigned vehicles
View Full Code Here

        // if node is assignment *and* target contains assignment for same
        // investment vehicle *then* merge nodes

        if (isAssignment())
        {
            InvestmentVehicle investmentVehicle = getAssignment().getInvestmentVehicle();
            TaxonomyNode sibling = target.getChildByInvestmentVehicle(investmentVehicle);

            if (sibling != null)
            {
                sibling.absorb(this);
View Full Code Here

        }

        @Override
        public String getText(Object e, Integer option)
        {
            InvestmentVehicle vehicle = Adaptor.adapt(InvestmentVehicle.class, e);
            if (vehicle == null)
                return null;

            List<Classification> classifications = taxonomy.getClassifications(vehicle);
            if (classifications.isEmpty())
View Full Code Here

TOP

Related Classes of name.abuchen.portfolio.model.InvestmentVehicle

Copyright © 2018 www.massapicom. 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.