Commit b1fb4203 authored by René Schöne's avatar René Schöne
Browse files

Fixing parser to allow request to have optional names. Also fixed test models.

parent 4cee4793
......@@ -37,7 +37,7 @@ import java.util.HashMap;
%goal solution;
Request request =
REQUEST NAME FOR component_ref.c LB_CURLY request_body.b RB_CURLY {: b.setTarget(c); return b; :}
REQUEST NAME? FOR component_ref.c LB_CURLY request_body.b RB_CURLY {: b.setTarget(c); return b; :}
;
Request request_body =
......
......@@ -85,7 +85,7 @@ component c1 {
providing energy = ((0.02*(size^2))+(0.71*compute_resource_0.flops))
}
}
request c0 {
request for c0 {
meta size = 6
requiring quality >= 35
}
......
......@@ -88,7 +88,7 @@ component c1 {
providing energy = ((0.02*(size^2))+(0.71*compute_resource_0.flops))
}
}
request c0 {
request for c0 {
meta size = 1
requiring quality >= 35
}
......
......@@ -104,11 +104,11 @@ component c1 {
providing energy = ((0.02*(size^2))+(0.71*compute_resource_0.flops))
}
}
request c0 {
request for c0 {
meta size = 1
requiring quality >= 35
}
request c1 {
request for c1 {
meta size = 40
requiring quality >= 35
}
......
......@@ -124,7 +124,7 @@ component c2 {
}
}
request c0 {
request for c0 {
meta size = 2
requiring quality >= 35
}
......
......@@ -226,7 +226,7 @@ component G {
}
}
request A {
request for A {
meta size = 2
requiring quality >= 35
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment