Examples of EphResults


Examples of org.metawb.astro.EphResults

    public DefaultPlanetModel(Event e, EphAccess ephAccess, HouseTypeId ht) {
        producer = EventBus.Driver.newDriver(PlanetModelEvent.class);
        this.e = e;
        this.ephAccess = ephAccess;
        this.ht = ht;
        EphResults ephData = AstroUtil.getEphData(
                e, ephAccess, AstroUtil.getStandardPlanets(), ht);
        planetMap = ephData.getPlanets();
        allHouseMap = ephData.getHouses();
        houseMap = new EnumMap<HouseId, House>(HouseId.class);
        addHouseNoEvent(HouseId.H1);
        addHouseNoEvent(HouseId.H10);
    }
View Full Code Here

Examples of org.metawb.astro.EphResults

    final public void setHouseType(HouseTypeId ht) {
        if(this.ht == ht)
            return;

        EphResults ephData = AstroUtil.getEphData(
                e, ephAccess, null, ht);
        allHouseMap.clear();
        houseMap.clear();
        allHouseMap.putAll(ephData.getHouses());
        this.ht = ht;
        addHouseNoEvent(HouseId.H1);
        addHouseNoEvent(HouseId.H10);
        firePlanetChanged(EvType.HOUSE_TYPE);
    }
View Full Code Here

Examples of org.metawb.astro.EphResults

        addHouseNoEvent(HouseId.H10);
        firePlanetChanged(EvType.HOUSE_TYPE);
    }

    final public void setPlanets (EnumSet<PlanetId> pids) {
        EphResults ephData = AstroUtil.getEphData(e, ephAccess, pids, null);
        planetMap.clear();
        planetMap.putAll(ephData.getPlanets());
        firePlanetChanged(EvType.ALL_ITEM);
    }
View Full Code Here

Examples of org.metawb.astro.EphResults

    final public Planet addPlanet(PlanetId pid) {
        Planet p = planetMap.get(pid);
        if(p != null)
            return p;

        EphResults ephData
                = AstroUtil.getEphData(e, ephAccess, EnumSet.of(pid), null);
        p = ephData.getPlanets().get(pid);
        if(p != null) {
            planetMap.put(pid, p);
            firePlanetChanged(EvType.ADD_PLANET, pid);
        } else {
            // NEEDSWORK: nothing returned from ephemeris, LOG?
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.