CacheSim/src/CacheSim/Model.elm

23 lines
635 B
Elm
Raw Permalink Normal View History

2019-05-27 14:08:48 -07:00
module CacheSim.Model exposing (..)
import CacheSim.Raw exposing (..)
import CacheSim.Hierarchy exposing (..)
import CacheSim.AccessView exposing (..)
2019-05-27 14:08:48 -07:00
type alias Model =
{ rawHierarchy : RawCacheModelHierarchy
, hierarchy : Maybe CacheHierarchy
2019-05-29 23:48:02 -07:00
, accessView : Maybe (List AccessView)
2019-05-28 22:12:36 -07:00
, accessInput : String
}
2019-05-27 14:08:48 -07:00
type alias Flags = ()
2019-05-28 19:37:22 -07:00
type Msg
= ChangeRawModel Int (RawCacheModel -> RawCacheModel)
| CreateRawModel
| DeleteRawModel Int
| UseHierarchy (Maybe CacheModelHierarchy)
2019-05-29 23:48:02 -07:00
| Access (List Int)
2019-05-28 22:12:36 -07:00
| ChangeAccessInput String
| AccessViewCancel
| AccessViewForward
| AccessViewBack