Examples of PlanetId


Examples of org.metawb.ephemeris.api.PlanetId

        return houses;
    }

    @Override
    public void createEventPlanet(Map<ResultId, Object> parms) {
        PlanetId pid = (PlanetId) parms.get(ResultId.PLANET_ID);
        Event event = (Event) parms.get(ResultId.EVENT);
        Double longitude = (Double) parms.get(ResultId.LONGITUDE);

        planets.put(pid, new Planet(pid, event, longitude.doubleValue(),
                                    (Double) parms.get(ResultId.LATITUDE),
View Full Code Here

Examples of org.metawb.ephemeris.api.PlanetId

     * Test of addPlanet method, of class DefaultPlanetModel.
     */
    @Test
    public void testAddPlanet() {
        System.out.println("addPlanet");
        PlanetId pid = PlanetId.Chiron;
        DefaultPlanetModel instance = pm;
        expectEv = PlanetModelEvent.EvType.ADD_PLANET;
        expectPid = pid;
        Planet p01 = instance.addPlanet(pid);
        assertEquals(pid, p01.getPlanetId());
View Full Code Here

Examples of org.metawb.ephemeris.api.PlanetId

     * Test of removePlanet method, of class DefaultPlanetModel.
     */
    @Test
    public void testRemovePlanet() {
        System.out.println("removePlanet");
        PlanetId pid = PlanetId.Sun;
        DefaultPlanetModel instance = pm;
        expectEv = PlanetModelEvent.EvType.REMOVE_PLANET;
        expectPid = pid;
        Planet p01 = instance.removePlanet(pid);
        assertEquals(pid, p01.getPlanetId());
View Full Code Here

Examples of org.metawb.ephemeris.api.PlanetId

     * Test of getPlanet method, of class DefaultPlanetModel.
     */
    @Test
    public void testGetPlanet() {
        System.out.println("getPlanet");
        PlanetId pid = PlanetId.Jupiter;
        DefaultPlanetModel instance = pm;
        Planet expResult = null;
        Planet result = instance.getPlanet(pid);
        assertEquals(pid, result.getPlanetId());
    }
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.