Search in sources :

Example 1 with AbstractOrbitCoordinates

use of gaiasky.util.coord.AbstractOrbitCoordinates in project gaiasky by langurmonkey.

the class EventScriptingInterface method setOrbitCoordinatesScaling.

@Override
public void setOrbitCoordinatesScaling(String name, double scalingFactor) {
    int modified = 0;
    List<AbstractOrbitCoordinates> aocs = AbstractOrbitCoordinates.getInstances();
    for (AbstractOrbitCoordinates aoc : aocs) {
        if (aoc.getClass().getSimpleName().equalsIgnoreCase(name)) {
            aoc.setScaling(scalingFactor);
            modified++;
        }
    }
    logger.info("Modified scaling of " + modified + " orbits");
}
Also used : AbstractOrbitCoordinates(gaiasky.util.coord.AbstractOrbitCoordinates)

Aggregations

AbstractOrbitCoordinates (gaiasky.util.coord.AbstractOrbitCoordinates)1