new features of the opscript language vicente arturo romero zaldivar university of cienfuegos....

10
New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: [email protected] Jon Ander ELORRIAGA ARANDIA University of the Basque Country Mateo Jerónimo LEZCANO BRITO University of Las Villas Mikel LARRAÑAGA University of the Basque Country

Upload: matthew-hammond

Post on 28-Mar-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

New Features of the OPScript Language New Features of the OPScript Language

Vicente Arturo ROMERO ZALDIVAR

University of Cienfuegos. email: [email protected]

Jon Ander ELORRIAGA ARANDIA

University of the Basque Country

Mateo Jerónimo LEZCANO BRITO

University of Las Villas

Mikel LARRAÑAGA

University of the Basque Country

Vicente Arturo ROMERO ZALDIVAR

University of Cienfuegos. email: [email protected]

Jon Ander ELORRIAGA ARANDIA

University of the Basque Country

Mateo Jerónimo LEZCANO BRITO

University of Las Villas

Mikel LARRAÑAGA

University of the Basque Country

Page 2: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

IntroductionIntroductionFacilitate the development of

educational aplicationsLanguages that facilitate the work

Automatic code generationCode reuse

Facilitate the development of educational aplications

Languages that facilitate the work Automatic code generationCode reuse

Page 3: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

OPScript LanguageOPScript LanguageThe Script language for YADBrowserRapid development of educational

applicationsPersistenceComponents reuse

Object ModelTUserTRasterObject

TdocumentTSprite

The Script language for YADBrowserRapid development of educational

applicationsPersistenceComponents reuse

Object ModelTUserTRasterObject

TdocumentTSprite

Page 4: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

MetaData and Reusable MethodsMetaData and Reusable MethodsTStudent = class string [level] fLevel; end; 

… 

var string s;begin ... s := GetStringFieldVal(level); ...end;

TStudent = class string [level] fLevel; end; 

… 

var string s;begin ... s := GetStringFieldVal(level); ...end;

Page 5: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

Verbal Communication between ObjectsVerbal Communication between ObjectsMakes possible the interaction of two

objects without additional programming

Makes possible the interaction of two objects without additional programming

Page 6: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

Verbal Communication between ObjectsVerbal Communication between ObjectsThe relationship between the objects is created

automatically

TExercise = class needs Play; fields string [mediafile] fPath; methods procedure PlayMedia(); begin ExecuteVerb('Play'); end;end; TPlayer = class methods procedure DoPlay(); var string Path; begin Path := GetStringFieldVal('mediafile'); ... end; offers Play(DoPlay);end; 

The relationship between the objects is created automatically

TExercise = class needs Play; fields string [mediafile] fPath; methods procedure PlayMedia(); begin ExecuteVerb('Play'); end;end; TPlayer = class methods procedure DoPlay(); var string Path; begin Path := GetStringFieldVal('mediafile'); ... end; offers Play(DoPlay);end; 

Page 7: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

Verbal Communication between ObjectsVerbal Communication between ObjectsAn important part of the web

application development process is reduce to the inclussion of objects

Verbal Communication facilitates the adaption of educational applications to the skills and knowledge of a given studentAn object can interact with different

objects

An important part of the web application development process is reduce to the inclussion of objects

Verbal Communication facilitates the adaption of educational applications to the skills and knowledge of a given studentAn object can interact with different

objects

Page 8: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

XML Object ModelsXML Object ModelsYADBrowser allows loading object models

represented in XML filesDynamical addition of object models to the current

application modelA simpler way to define an object model

var Object Graph;begin ... Graph:=XMLModel.LoadModelFrom('XMLModels\

BeginnerGraph.xml'); ...end;

YADBrowser allows loading object models represented in XML filesDynamical addition of object models to the current

application modelA simpler way to define an object model

var Object Graph;begin ... Graph:=XMLModel.LoadModelFrom('XMLModels\

BeginnerGraph.xml'); ...end;

Page 9: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

XML Object ModelsXML Object Models<?xml version="1.0" encoding="UTF-8"?><graph id='Root' CurrentNode='Start'> <methods><!--procedure ProcessEvent(); … <?xml version="1.0" encoding="UTF-8"?><graph id='Root' CurrentNode='Start'> <methods><!--procedure ProcessEvent(); var .. begin … end;--> </methods> <verb name='ChangeEvent' offers='true' method='ProcessEvent' /> … <node id='Start' name='StartNode'> <link id='LStartOn' node='On' event='1' /> ..</graph>

<?xml version="1.0" encoding="UTF-8"?><graph id='Root' CurrentNode='Start'> <methods><!--procedure ProcessEvent(); … <?xml version="1.0" encoding="UTF-8"?><graph id='Root' CurrentNode='Start'> <methods><!--procedure ProcessEvent(); var .. begin … end;--> </methods> <verb name='ChangeEvent' offers='true' method='ProcessEvent' /> … <node id='Start' name='StartNode'> <link id='LStartOn' node='On' event='1' /> ..</graph>

Page 10: New Features of the OPScript Language Vicente Arturo ROMERO ZALDIVAR University of Cienfuegos. email: vicenterz@yahoo.es Jon Ander ELORRIAGA ARANDIA University

ConclusionsConclusionsNew features of the OPScript LanguageApplications can be more easily adapted

Downloading object models

New features of the OPScript LanguageApplications can be more easily adapted

Downloading object models