MetaDone
metadone.client.grasyla2.GrasylaRootContext Class Reference
Inheritance diagram for metadone.client.grasyla2.GrasylaRootContext:
Collaboration diagram for metadone.client.grasyla2.GrasylaRootContext:

List of all members.

Public Member Functions

 GrasylaRootContext (ConcreteObjectGroup cog, ConcreteModel model, MetaModel metamodel, GrasylaView view, GrasylaEngineFactory factory)
void setFunctor (String functor)
ScriptEvaluator getScriptEvaluator (ProgLanguage lang)
Set< ScriptEvaluatorgetScriptEvaluators ()
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

Detailed Description

A root Grasyla context.

Author:
kma

Constructor & Destructor Documentation


Member Function Documentation

Object metadone.client.grasyla2.GrasylaRootContext.configure ( ) throws BadPreCondition

Configure the object once all the dependencies have been solved by the Configuration object

Returns:
Some object that is dependent on the application. Should be used only to improve the diagnostic of problems only.
Exceptions:
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.

Returns:
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.

Returns:
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.

Returns:
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.

Parameters:
langThe language
Returns:
The script evaluator
Exceptions:
NoSuchElementExceptionwhen 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.

Returns:
The set of evaluators (unmodifiable)

Reimplemented from metadone.client.grasyla2.GrasylaContext.

References metadone.client.grasyla2.GrasylaRootContext.evaluators.

SelectorBestEquation metadone.client.grasyla2.GrasylaRootContext.getSelector ( )

Gets the equation selector.

Returns:
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.

Parameters:
functorThe new functor

Reimplemented from metadone.client.grasyla2.GrasylaContext.

Referenced by metadone.client.grasyla2.GrasylaRootContext.GrasylaRootContext().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations