package com.momega.spacesimulator.model; import java.util.ArrayList; import java.util.List; import java.util.Map; /** * The model is the POJO object containing all the data. It contains current timestamp, all dynamical points, * selected and and central body and also the tree of the spheres of influences. * Created by martin on 5/6/14. */ public class Model { private Timestamp time; protected final List<MovingObject> movingObjects = new ArrayList<>(); private SphereOfInfluence rootSoi; private transient Map<CelestialBody, SphereOfInfluence> soiMap = null; private Camera camera; private String name; public Camera getCamera() { return camera; } public void setCamera(Camera camera) { this.camera = camera; } /** * Gets the current timestamp * @return the time stamp of the model */ public Timestamp getTime() { return time; } public void setTime(Timestamp time) { this.time = time; } /** * Gets the list of the moving objects. It includes all celestial bodies and satellites. * @return the list of all moving objects */ public List<MovingObject> getMovingObjects() { return movingObjects; } /** * Gets the root Sphere of influence. The body of the root soi is also central body of the system * @return the instance of the sphere of influence */ public SphereOfInfluence getRootSoi() { return rootSoi; } public void setRootSoi(SphereOfInfluence rootSoi) { this.rootSoi = rootSoi; } public Map<CelestialBody, SphereOfInfluence> getSoiMap() { return soiMap; } public void setSoiMap(Map<CelestialBody, SphereOfInfluence> soiMap) { this.soiMap = soiMap; } public void setName(String name) { this.name = name; } public String getName() { return name; } }