1 USING: help.syntax help.markup kernel math classes classes.tuple
6 { $class-description "History models record a timeline of previous values on calls to " { $link add-history } ", and can travel back and forth on the timeline with " { $link go-back } " and " { $link go-forward } ". History models are constructed by " { $link <history> } "." } ;
9 { $values { "value" object } { "history" "a new " { $link history } } }
10 { $description "Creates a new history model with an initial value." } ;
12 { <history> add-history go-back go-forward } related-words
15 { $values { "history" history } }
16 { $description "Restores the previous value and calls " { $link model-changed } " on all observers registered with " { $link add-connection } "." } ;
19 { $values { "history" history } }
20 { $description "Restores the value set prior to the last call to " { $link go-back } " and calls " { $link model-changed } " on all observers registered with " { $link add-connection } "." } ;
23 { $values { "history" history } }
24 { $description "Adds the current value to the history." } ;
26 ARTICLE: "models-history" "History models"
27 "History models record previous values."
33 { $subsections add-history }
34 "Navigating the history:"
40 ABOUT: "models-history"