riaps.lang.lang module

DSL for RIAPS software models Created on Oct 9, 2016 Uses the textX parser @author: riaps

exception riaps.lang.lang.LangError(message)[source]

Bases: Exception

class riaps.lang.lang.RiapsModel2JSON(model)[source]

Bases: object

Class to convert the RIAPS model (constructed by the parser) into a data structure suitable for generating JSON output.Dependent on the DSL syntax and the object structure built by the parser.

static convertMem(value, unit)[source]

Convert all memory size values to kilobytes

convertRate(value, unit)[source]

Convert all rate values to bytes/sec

static convertTime(value, unit)[source]

Convert all time values to msec

getActorScheduler(sched)[source]
getActors(actors)[source]
getActuals(actuals)[source]
getComponentScheduler(sched)[source]
getComponents(components)[source]
getFormals(formals)[source]
getGroups(groups)[source]
getIOComponents(components)[source]
getImpl(comp)[source]
getInstances(instances)[source]
getInternals(internals)[source]
getLibraries(libraries)[source]
getLocals(locals_)[source]
getMessages(messages)[source]
getPorts(ports)[source]
getUsage(usage)[source]
riaps.lang.lang.actor_obj_processor(actor)[source]
riaps.lang.lang.compileModel(modelFileName, verbose=False, debug=False, generate=True)[source]
riaps.lang.lang.insport_obj_processor(insport)[source]
riaps.lang.lang.instance_obj_processor(instance)[source]
riaps.lang.lang.main(debug=False)[source]
riaps.lang.lang.op_port_obj_processor(port)[source]
riaps.lang.lang.timed_port_obj_processor(port)[source]
riaps.lang.lang.timport_obj_processor(timport)[source]