MetaDone
|
Public Member Functions | |
GrasylaRootContext (ConcreteObjectGroup cog, ConcreteModel model, MetaModel metamodel, GrasylaView view, GrasylaEngineFactory factory) | |
void | setFunctor (String functor) |
ScriptEvaluator | getScriptEvaluator (ProgLanguage lang) |
Set< ScriptEvaluator > | getScriptEvaluators () |
GrasylaEngineFactory | getFactory () |
MetaModel | getMetaModel () |
ConcreteModel | getModel () |
SelectorBestEquation | getSelector () |
Object | configure () throws BadPreCondition |
Private Attributes | |
final ConcreteModel | model |
final MetaModel | metamodel |
final ScriptEvaluator[] | evaluators = new ScriptEvaluator[] { new JSEvaluator(), new GroovyEvaluator() } |
final SelectorBestEquation | selector |
final GrasylaEngineFactory | factory |
A root Grasyla context.
metadone.client.grasyla2.GrasylaRootContext.GrasylaRootContext | ( | ConcreteObjectGroup | cog, |
ConcreteModel | model, | ||
MetaModel | metamodel, | ||
GrasylaView | view, | ||
GrasylaEngineFactory | factory | ||
) |
References metadone.client.grasyla2.GrasylaRootContext.factory, metadone.client.grasyla2.GrasylaContext.getScript(), metadone.client.grasyla2.GrasylaRootContext.metamodel, metadone.client.grasyla2.GrasylaRootContext.model, metadone.client.grasyla2.GrasylaRootContext.selector, metadone.client.grasyla2.GrasylaRootContext.setFunctor(), and metadone.client.grasyla2.GrasylaContext.setView().
Object metadone.client.grasyla2.GrasylaRootContext.configure | ( | ) | throws BadPreCondition |
Configure the object once all the dependencies have been solved by the Configuration object
BadPreCondition |
Reimplemented from metadone.client.grasyla2.GrasylaContext.
References metadone.client.grasyla2.SelectorBestEquation.configure(), and metadone.client.grasyla2.GrasylaRootContext.selector.
Referenced by metadone.client.grasyla2.GrasylaEngineFactory.createInterpreter().
GrasylaEngineFactory metadone.client.grasyla2.GrasylaRootContext.getFactory | ( | ) |
Gets the factory of engines.
Reimplemented from metadone.client.grasyla2.GrasylaContext.
References metadone.client.grasyla2.GrasylaRootContext.factory.
MetaModel metadone.client.grasyla2.GrasylaRootContext.getMetaModel | ( | ) |
Gets the current metamodel.
Reimplemented from metadone.client.grasyla2.GrasylaContextEquation.
References metadone.client.grasyla2.GrasylaRootContext.metamodel.
ConcreteModel metadone.client.grasyla2.GrasylaRootContext.getModel | ( | ) |
Gets the current model.
Reimplemented from metadone.client.grasyla2.GrasylaContext.
References metadone.client.grasyla2.GrasylaRootContext.model.
ScriptEvaluator metadone.client.grasyla2.GrasylaRootContext.getScriptEvaluator | ( | ProgLanguage | lang | ) |
Gets the script evaluator for some language.
lang | The language |
NoSuchElementException | when there is no script evaluator for that language |
Reimplemented from metadone.client.grasyla2.GrasylaContext.
References metadone.client.grasyla2.GrasylaRootContext.evaluators.
Set<ScriptEvaluator> metadone.client.grasyla2.GrasylaRootContext.getScriptEvaluators | ( | ) |
Gets all the script evaluators.
Reimplemented from metadone.client.grasyla2.GrasylaContext.
References metadone.client.grasyla2.GrasylaRootContext.evaluators.
SelectorBestEquation metadone.client.grasyla2.GrasylaRootContext.getSelector | ( | ) |
Gets the equation selector.
Reimplemented from metadone.client.grasyla2.GrasylaContext.
References metadone.client.grasyla2.GrasylaRootContext.selector.
void metadone.client.grasyla2.GrasylaRootContext.setFunctor | ( | String | functor | ) |
Sets the functor.
functor | The new functor |
Reimplemented from metadone.client.grasyla2.GrasylaContext.
Referenced by metadone.client.grasyla2.GrasylaRootContext.GrasylaRootContext().
final ScriptEvaluator [] metadone.client.grasyla2.GrasylaRootContext.evaluators = new ScriptEvaluator[] { new JSEvaluator(), new GroovyEvaluator() } [private] |
final MetaModel metadone.client.grasyla2.GrasylaRootContext.metamodel [private] |
final ConcreteModel metadone.client.grasyla2.GrasylaRootContext.model [private] |