CacheSim/src/CacheSim/Model.elm

15 lines
401 B
Elm

module CacheSim.Model exposing (..)
import CacheSim.Raw exposing (..)
import CacheSim.Hierarchy exposing (..)
type alias Model =
{ rawHierarchy : RawCacheModelHierarchy
, hierarchy : Maybe CacheHierarchy
}
type alias Flags = ()
type Msg
= ChangeRawModel Int (RawCacheModel -> RawCacheModel)
| CreateRawModel
| DeleteRawModel Int
| UseHierarchy (Maybe CacheModelHierarchy)