Package barsuift.simLife

Examples of barsuift.simLife.PercentState


    private TreeLeaf3DState leaf3DState;

    public TreeLeafState() {
        super();
        this.id = new Long(0);
        this.efficiency = new PercentState();
        this.energy = new BigDecimal(0);
        this.freeEnergy = new BigDecimal(0);
        this.age = 0;
        this.leaf3DState = new TreeLeaf3DState();
    }
View Full Code Here


    }

    public TreeLeafState(TreeLeafState copy) {
        super();
        this.id = copy.id;
        this.efficiency = new PercentState(copy.efficiency);
        this.energy = copy.energy;
        this.freeEnergy = copy.freeEnergy;
        this.age = copy.age;
        this.leaf3DState = new TreeLeaf3DState(copy.leaf3DState);
    }
View Full Code Here

        }
    }

    public void testGetState() {
        assertEquals(sunState, sun.getState());
        sunState = new SunState(new PercentState(new BigDecimal("0.32")), new PercentState(new BigDecimal("0.47")),
                new PercentState(new BigDecimal("0.78")));
        sun = new BasicSun(sunState);
        assertEquals(sunState, sun.getState());
    }
View Full Code Here

TOP

Related Classes of barsuift.simLife.PercentState

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.