com.monad.homerun.modelmgt
Interface ModelRuntime


public interface ModelRuntime

ModelRuntime is the interface for a runtime model


Method Summary
 ModelCore getCore()
          Returns the persistable core of the model runtime.
 java.lang.String getModelName()
          Returns the name of the model (definition).
 ModelStatus getStatus()
          Returns the current runtime status.
 void inform(Event event)
          Informs the model of a possibly relevant event.
 void init(Model model, java.util.Map props, RuntimeContext context)
          Initializes runtime with model declaration.
 

Method Detail

init

void init(Model model,
          java.util.Map props,
          RuntimeContext context)
Initializes runtime with model declaration. If context is not null, model should report events to it.

Parameters:
model - the model definition
props - additional runtime properties
context - the runtime context

getModelName

java.lang.String getModelName()
Returns the name of the model (definition).

Returns:
name the model definition name

getStatus

ModelStatus getStatus()
Returns the current runtime status.

Returns:
status the current runtime status - which may be a state, value, etc

getCore

ModelCore getCore()
Returns the persistable core of the model runtime.

Returns:
modelcore the core, or null if the runtime lacks any persistable part.

inform

void inform(Event event)
Informs the model of a possibly relevant event.

Parameters:
event - the event. A model may ignore any event.


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.