2019-05-27 14:08:48 -07:00
|
|
|
module CacheSim.Model exposing (..)
|
2019-05-28 19:26:02 -07:00
|
|
|
import CacheSim.Raw exposing (..)
|
2019-05-28 20:22:05 -07:00
|
|
|
import CacheSim.Hierarchy exposing (..)
|
2019-05-28 21:35:46 -07:00
|
|
|
import CacheSim.AccessView exposing (..)
|
2019-05-27 14:08:48 -07:00
|
|
|
|
2019-05-28 19:26:02 -07:00
|
|
|
type alias Model =
|
2019-05-28 19:51:30 -07:00
|
|
|
{ rawHierarchy : RawCacheModelHierarchy
|
2019-05-28 20:22:05 -07:00
|
|
|
, 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-28 19:26:02 -07:00
|
|
|
}
|
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
|
2019-05-28 20:22:05 -07:00
|
|
|
| UseHierarchy (Maybe CacheModelHierarchy)
|
2019-05-29 23:48:02 -07:00
|
|
|
| Access (List Int)
|
2019-05-28 22:12:36 -07:00
|
|
|
| ChangeAccessInput String
|
2019-05-31 23:54:11 -07:00
|
|
|
| AccessViewCancel
|
2019-05-28 21:58:15 -07:00
|
|
|
| AccessViewForward
|
|
|
|
| AccessViewBack
|