CacheSim/src/CacheSim/Model.elm

22 lines
598 B
Elm
Raw 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
, accessView : Maybe 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)
| Access Int
2019-05-28 22:12:36 -07:00
| ChangeAccessInput String
| AccessViewForward
| AccessViewBack