|
UndocumentedDIVERGED :: StopReason The simulation diverged before reaching its end. FAILED :: StopReason An action scheduled by the sequence threw an exception, which prevented the sequence from continuing. The exceptions themselves are collected separately and reported by whoever runs the sequence. INTERRUPTED :: StopReason The client or some other party interrupted the sequence abruptly. Monad_Sequence_super0 :: Functor Sequence SIMULATION_DID_NOT_START :: StopReason The simulation never commenced, for instance because the solver and the model are incompatible, a required file or library is missing, or a license is not available. STOPPED :: StopReason The sequence stopped itself, which is the normal ending. Every other reason marks a failure to complete the sequence. Sequence :: ((a -> <Action,Proc> ()) -> <Action,Proc> ()) -> Sequence a execute :: <Action,Proc> a -> Sequence a The sequence executeWhenStopped :: (StopReason -> <Action,Proc> a) -> Sequence () The sequence fork :: Sequence a -> Sequence () The sequence getVar :: Serializable a => String -> <Action> a Returns the current value of a variable getVar_ :: String -> Binding a -> <Action> a Reads a simulator variable with an explicitly given binding. halt :: Sequence a The sequence scheduleAt :: Double -> (() -> <Action,Proc> a) -> <Action> ()
scheduleNextStep :: (() -> <Action,Proc> a) -> <Action> () Schedules a continuation to run at the beginning of the next simulation step. scheduleNow :: (() -> <Action,Proc> a) -> <Action> () Schedules a continuation to run during the current simulation step, before the simulator advances time. scheduleWhenStopped :: (StopReason -> <Action,Proc> a) -> <Action> () Schedules a handler to run once when the sequence stops, receiving the reason it stopped. All handlers registered so far run at that point and are then forgotten. setVar :: Serializable a => String -> a -> <Action> () Sets the value of a variable setVar_ :: String -> a -> Binding a -> <Action> () Writes a simulator variable with an explicitly given binding. stop :: Sequence a The sequence stopActionContext :: ActionContext -> <Proc> () Stops the sequence running in the given context from outside it, as
stop_ :: <Action> () Stops the sequence as time :: <Action> Double Gives the current simulation time. wait :: Double -> Sequence () The sequence waitCondition :: <Action,Proc> Boolean -> Sequence () The sequence waitStep :: Sequence () The sequence waitUntil :: Double -> Sequence () The sequence |