class Ven::Orchestra
- Ven::Orchestra
- Reference
- Object
Overview
Ven Orchestra is the communication layer between the Ven interpreter infrastructure and the Inquirer infrastructure.
It is the highest abstraction of those currently provided by Ven.
Simply speaking, it interprets expose
and distinct
statements (although distinct
s are also interpreted
by Inquirer, but in a way that is a bit different).
A composer program is the program that stands in place
of X
in the following question:
What, and in what order, should I run before
X
so as to getX
up and running.
Their order, as well as files themselves, are managed entirely by Inquirer.
orchestra = Ven::Orchestra.new
puts orchestra.from("1 + 1") # 2
Included Modules
- Inquirer::Protocol
Defined in:
ven/orchestra.crConstructors
-
.new(port = 12879)
Makes an Orchestra for an Inquirer server running at the given port.
Instance Method Summary
-
#files_for(distinct : Distinct)
Asks the Inquirer server which files are required to build the given distinct.
-
#files_for?(distinct : Distinct)
Asks the Inquirer server which files are required to build the given distinct.
-
#from(source : String, file = "composer", legate = Legate.new, run = true)
Runs the given source code, which can be found in file, as a composer program.
-
#hub : Ven::Suite::Context::Hub
Returns the context hub of this orchestra.
-
#isolated : Bool
Returns whether this orchestra is running isolated from an Inquirer server.
-
#pool : Array(Ven::Suite::Chunk)
Returns the chunk pool of this orchestra.
Constructor Detail
Instance Method Detail
Asks the Inquirer server which files are required to build the given distinct.
Returns an array of filepaths.
Raises ExposeError
if failed.
Asks the Inquirer server which files are required to build the given distinct.
Returns an array of filepaths (empty if failed).
Runs the given source code, which can be found in file, as a composer program.