Class AbstractScesimModel<T extends AbstractScesimData>

  • Direct Known Subclasses:
    Background, Simulation

    public abstract class AbstractScesimModel<T extends AbstractScesimData>
    extends java.lang.Object
    Abstract class representing the content model of the grid, to be extended by concrete implementations
    • Field Detail

      • scesimModelDescriptor

        protected final ScesimModelDescriptor scesimModelDescriptor
        Describes structure of the simulation
      • scesimData

        protected final java.util.List<T extends AbstractScesimData> scesimData
        Contains list of scenarios to test
    • Constructor Detail

      • AbstractScesimModel

        public AbstractScesimModel()
    • Method Detail

      • addData

        public abstract T addData​(int index)
      • getUnmodifiableData

        public java.util.List<T> getUnmodifiableData()
        Returns an unmodifiable list wrapping the backed one
        Returns:
      • removeDataByIndex

        public void removeDataByIndex​(int index)
      • removeData

        public void removeData​(T toRemove)
      • getDataByIndex

        public T getDataByIndex​(int index)
      • addData

        public T addData()
      • replaceData

        public void replaceData​(int index,
                                T newScesimData)
      • cloneData

        public T cloneData​(int sourceIndex,
                           int targetIndex)
      • clear

        public void clear()
      • clearDatas

        public void clearDatas()
      • resetErrors

        public void resetErrors()
      • removeFactMappingByIndex

        public void removeFactMappingByIndex​(int index)
      • removeFactMapping

        public void removeFactMapping​(FactMapping toRemove)
      • clearDatas

        protected void clearDatas​(FactMapping toRemove)
      • toScesimDataWithIndex

        protected <Z extends ScesimDataWithIndex<T>> java.util.List<Z> toScesimDataWithIndex​(java.util.function.BiFunction<java.lang.Integer,​T,​Z> producer)