test_class.declarator: testFile = "specs/tgff/opendse_example.tgff"
test_class.modifier: protected static final
test_class.original_string: protected static final String testFile = "specs/tgff/opendse_example.tgff";
test_class.type: String
test_class.var_name: testFile
test_class.file: opendse-io/src/test/java/net/sf/opendse/io/ReaderTGFFTest.java
test_class.identifier: ReaderTGFFTest
test_case.body: @Test
  	public void testToSpecification() {
  
  		List<String> in = Arrays.asList("@HYPERPERIOD 300", "@COMMUN_QUANT 0 {", "# type    quantity", "0          5",
  				"1          6", "}",
  
  				"@TASK_GRAPH 0 {", "PERIOD 300", "TASK t0_0	TYPE 1", "TASK t0_1	TYPE 2", "TASK t0_2	TYPE 2",
  				"TASK t0_3	TYPE 2", "ARC a0_0 	FROM t0_0  TO  t0_1 TYPE 0", "ARC a0_1 	FROM t0_1  TO  t0_2 TYPE 0",
  				"ARC a0_2 	FROM t0_0  TO  t0_3 TYPE 1", "HARD_DEADLINE d0_0 ON t0_2 AT 300",
  				"SOFT_DEADLINE d0_1 ON t0_3 AT 200", "}",
  
  				"@CORE 0 {", "# price      area", "79.0597    0.219023", "#-----------",
  				"# type version valid      task_time", "0    0       1          10", "1    0       1          7",
  				"2    0       1          11", "}",
  
  				"@CORE 1 {", "# price      area", "72.405     0.166029", "#-----------",
  				"# type version valid      task_time", "0    0       1          8", "1    0       0          9",
  				"2    0       1          11", "}",
  
  				"@CORE 2 {", "# price      area", "97.0382    0.185649", "#-----------",
  				"# type version valid      task_time", "0    0       1          10", "1    0       0          8",
  				"2    0       1          12", "}",
  
  				"@WIRING 0", "{", "# max_buffer_size", "491", "}");
  
  		SpecificationTypeBased spec = new ReaderTGFF().toSpecification(in);
  
  		Assert.assertNotNull(spec);
  		Assert.assertNotNull(spec.getApplication());
  		Assert.assertNotNull(spec.getResourceTypes());
  		Assert.assertNotNull(spec.getLinkTypes());
  		Assert.assertNotNull(spec.getMappings());
  	}
test_case.class_method_signature: ReaderTGFFTest.testToSpecification()
test_case.full_signature: @Test public void testToSpecification()
test_case.identifier: testToSpecification
test_case.invocations: asList toSpecification assertNotNull assertNotNull getApplication assertNotNull getResourceTypes assertNotNull getLinkTypes assertNotNull getMappings
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToSpecification()
focal_class.declarator: TGFF_TYPE = "TGFF_TYPE"
focal_class.modifier: public static final
focal_class.original_string: public static final String TGFF_TYPE = "TGFF_TYPE";
focal_class.type: String
focal_class.var_name: TGFF_TYPE
focal_class.declarator: PERIOD = "PERIOD"
focal_class.modifier: public static final
focal_class.original_string: public static final String PERIOD = "PERIOD";
focal_class.type: String
focal_class.var_name: PERIOD
focal_class.declarator: MSG_SIZE = "MSG_SIZE"
focal_class.modifier: public static final
focal_class.original_string: public static final String MSG_SIZE = "MSG_SIZE";
focal_class.type: String
focal_class.var_name: MSG_SIZE
focal_class.declarator: RES_ATTRIBUTES = "RES_ATTRIBUTES"
focal_class.modifier: public static final
focal_class.original_string: public static final String RES_ATTRIBUTES = "RES_ATTRIBUTES";
focal_class.type: String
focal_class.var_name: RES_ATTRIBUTES
focal_class.declarator: RES_VALUES = "RES_VALUES"
focal_class.modifier: public static final
focal_class.original_string: public static final String RES_VALUES = "RES_VALUES";
focal_class.type: String
focal_class.var_name: RES_VALUES
focal_class.declarator: HARD_DEADLINE = "HARD_DEADLINE"
focal_class.modifier: public static final
focal_class.original_string: public static final String HARD_DEADLINE = "HARD_DEADLINE";
focal_class.type: String
focal_class.var_name: HARD_DEADLINE
focal_class.declarator: SOFT_DEADLINE = "SOFT_DEADLINE"
focal_class.modifier: public static final
focal_class.original_string: public static final String SOFT_DEADLINE = "SOFT_DEADLINE";
focal_class.type: String
focal_class.var_name: SOFT_DEADLINE
focal_class.declarator: WIRE = "@WIRING"
focal_class.modifier: public static final
focal_class.original_string: public static final String WIRE = "@WIRING";
focal_class.type: String
focal_class.var_name: WIRE
focal_class.declarator: HYPERPERIOD = "@HYPERPERIOD"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String HYPERPERIOD = "@HYPERPERIOD";
focal_class.type: String
focal_class.var_name: HYPERPERIOD
focal_class.declarator: TASK_GRAPH = "@TASK_GRAPH"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String TASK_GRAPH = "@TASK_GRAPH";
focal_class.type: String
focal_class.var_name: TASK_GRAPH
focal_class.declarator: COMMUN_QUANT = "@COMMUN_QUANT"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String COMMUN_QUANT = "@COMMUN_QUANT";
focal_class.type: String
focal_class.var_name: COMMUN_QUANT
focal_class.declarator: CORE = "@CORE"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String CORE = "@CORE";
focal_class.type: String
focal_class.var_name: CORE
focal_class.declarator: CLIENT_PE = "@CLIENT_PE"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String CLIENT_PE = "@CLIENT_PE";
focal_class.type: String
focal_class.var_name: CLIENT_PE
focal_class.declarator: SERVER_PE = "@SERVER_PE"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String SERVER_PE = "@SERVER_PE";
focal_class.type: String
focal_class.var_name: SERVER_PE
focal_class.declarator: PROC = "@PROC"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String PROC = "@PROC";
focal_class.type: String
focal_class.var_name: PROC
focal_class.declarator: LINK = "LINK"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LINK = "LINK";
focal_class.type: String
focal_class.var_name: LINK
focal_class.declarator: TASK = "TASK"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String TASK = "TASK";
focal_class.type: String
focal_class.var_name: TASK
focal_class.declarator: ARC = "ARC"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String ARC = "ARC";
focal_class.type: String
focal_class.var_name: ARC
focal_class.declarator: VALID = "valid"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String VALID = "valid";
focal_class.type: String
focal_class.var_name: VALID
focal_class.declarator: TYPE = "type"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String TYPE = "type";
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: CLOSING = "}"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String CLOSING = "}";
focal_class.type: String
focal_class.var_name: CLOSING
focal_class.declarator: COMMENT = "#"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String COMMENT = "#";
focal_class.type: String
focal_class.var_name: COMMENT
focal_class.declarator: AT = "@"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String AT = "@";
focal_class.type: String
focal_class.var_name: AT
focal_class.declarator: SEPARATOR = "\\s+"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String SEPARATOR = "\\s+";
focal_class.type: String
focal_class.var_name: SEPARATOR
focal_class.declarator: CONNECTOR = "_"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String CONNECTOR = "_";
focal_class.type: String
focal_class.var_name: CONNECTOR
focal_class.declarator: HEADER = "#---------"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String HEADER = "#---------";
focal_class.type: String
focal_class.var_name: HEADER
focal_class.declarator: properties
focal_class.modifier: protected
focal_class.original_string: protected Map<String, String> properties;
focal_class.type: Map<String, String>
focal_class.var_name: properties
focal_class.declarator: messageSizes
focal_class.modifier: protected
focal_class.original_string: protected Map<String, Double> messageSizes;
focal_class.type: Map<String, Double>
focal_class.var_name: messageSizes
focal_class.declarator: hyperperiod
focal_class.modifier: protected
focal_class.original_string: protected double hyperperiod;
focal_class.type: double
focal_class.var_name: hyperperiod
focal_class.declarator: tgffTypeMap = new HashMap<String, List<Task>>()
focal_class.modifier: protected
focal_class.original_string: protected Map<String, List<Task>> tgffTypeMap = new HashMap<String, List<Task>>();
focal_class.type: Map<String, List<Task>>
focal_class.var_name: tgffTypeMap
focal_class.file: opendse-io/src/main/java/net/sf/opendse/io/ReaderTGFF.java
focal_class.identifier: ReaderTGFF
focal_class.class_method_signature: ReaderTGFF.read(String filename)
focal_class.full_signature: public SpecificationTypeBased read(String filename)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (String filename)
focal_class.return: SpecificationTypeBased
focal_class.signature: SpecificationTypeBased read(String filename)
focal_class.class_method_signature: ReaderTGFF.read(File file)
focal_class.full_signature: public SpecificationTypeBased read(File file)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.return: SpecificationTypeBased
focal_class.signature: SpecificationTypeBased read(File file)
focal_class.class_method_signature: ReaderTGFF.read(InputStream in)
focal_class.full_signature: public SpecificationTypeBased read(InputStream in)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (InputStream in)
focal_class.return: SpecificationTypeBased
focal_class.signature: SpecificationTypeBased read(InputStream in)
focal_class.class_method_signature: ReaderTGFF.toSpecification(List<String> in)
focal_class.full_signature: public SpecificationTypeBased toSpecification(List<String> in)
focal_class.identifier: toSpecification
focal_class.modifiers: public
focal_class.parameters: (List<String> in)
focal_class.return: SpecificationTypeBased
focal_class.signature: SpecificationTypeBased toSpecification(List<String> in)
focal_class.class_method_signature: ReaderTGFF.toApplication(List<String> in)
focal_class.full_signature: protected Application<Task, Dependency> toApplication(List<String> in)
focal_class.identifier: toApplication
focal_class.modifiers: protected
focal_class.parameters: (List<String> in)
focal_class.return: Application<Task, Dependency>
focal_class.signature: Application<Task, Dependency> toApplication(List<String> in)
focal_class.class_method_signature: ReaderTGFF.toResourceTypes(List<String> in)
focal_class.full_signature: protected ResourceTypes<Resource> toResourceTypes(List<String> in)
focal_class.identifier: toResourceTypes
focal_class.modifiers: protected
focal_class.parameters: (List<String> in)
focal_class.return: ResourceTypes<Resource>
focal_class.signature: ResourceTypes<Resource> toResourceTypes(List<String> in)
focal_class.class_method_signature: ReaderTGFF.toMappings(List<String> in, ResourceTypes<Resource> resourceTypes)
focal_class.full_signature: protected Mappings<Task, Resource> toMappings(List<String> in, ResourceTypes<Resource> resourceTypes)
focal_class.identifier: toMappings
focal_class.modifiers: protected
focal_class.parameters: (List<String> in, ResourceTypes<Resource> resourceTypes)
focal_class.return: Mappings<Task, Resource>
focal_class.signature: Mappings<Task, Resource> toMappings(List<String> in, ResourceTypes<Resource> resourceTypes)
focal_class.class_method_signature: ReaderTGFF.toLinkTypes(List<String> in)
focal_class.full_signature: protected LinkTypes<Link> toLinkTypes(List<String> in)
focal_class.identifier: toLinkTypes
focal_class.modifiers: protected
focal_class.parameters: (List<String> in)
focal_class.return: LinkTypes<Link>
focal_class.signature: LinkTypes<Link> toLinkTypes(List<String> in)
focal_class.class_method_signature: ReaderTGFF.importTaskGraph(String name, Iterator<String> it, Application<Task, Dependency> application)
focal_class.full_signature: protected void importTaskGraph(String name, Iterator<String> it, Application<Task, Dependency> application)
focal_class.identifier: importTaskGraph
focal_class.modifiers: protected
focal_class.parameters: (String name, Iterator<String> it, Application<Task, Dependency> application)
focal_class.return: void
focal_class.signature: void importTaskGraph(String name, Iterator<String> it, Application<Task, Dependency> application)
focal_class.class_method_signature: ReaderTGFF.addTask(String line, String suffix, double period, Application<Task, Dependency> application)
focal_class.full_signature: protected void addTask(String line, String suffix, double period, Application<Task, Dependency> application)
focal_class.identifier: addTask
focal_class.modifiers: protected
focal_class.parameters: (String line, String suffix, double period, Application<Task, Dependency> application)
focal_class.return: void
focal_class.signature: void addTask(String line, String suffix, double period, Application<Task, Dependency> application)
focal_class.class_method_signature: ReaderTGFF.addCommunication(String line, String suffix, double period,
  			Application<Task, Dependency> application)
focal_class.full_signature: protected void addCommunication(String line, String suffix, double period,
  			Application<Task, Dependency> application)
focal_class.identifier: addCommunication
focal_class.modifiers: protected
focal_class.parameters: (String line, String suffix, double period,
  			Application<Task, Dependency> application)
focal_class.return: void
focal_class.signature: void addCommunication(String line, String suffix, double period,
  			Application<Task, Dependency> application)
focal_class.class_method_signature: ReaderTGFF.addDeadline(String line, String suffix, Application<Task, Dependency> application,
  			String deadlineType)
focal_class.full_signature: protected void addDeadline(String line, String suffix, Application<Task, Dependency> application,
  			String deadlineType)
focal_class.identifier: addDeadline
focal_class.modifiers: protected
focal_class.parameters: (String line, String suffix, Application<Task, Dependency> application,
  			String deadlineType)
focal_class.return: void
focal_class.signature: void addDeadline(String line, String suffix, Application<Task, Dependency> application,
  			String deadlineType)
focal_class.class_method_signature: ReaderTGFF.importCore(String name, Iterator<String> it, ResourceTypes<Resource> resourceTypes)
focal_class.full_signature: protected void importCore(String name, Iterator<String> it, ResourceTypes<Resource> resourceTypes)
focal_class.identifier: importCore
focal_class.modifiers: protected
focal_class.parameters: (String name, Iterator<String> it, ResourceTypes<Resource> resourceTypes)
focal_class.return: void
focal_class.signature: void importCore(String name, Iterator<String> it, ResourceTypes<Resource> resourceTypes)
focal_class.class_method_signature: ReaderTGFF.importMappings(String name, Iterator<String> it, ResourceTypes<Resource> resourceTypes,
  			Mappings<Task, Resource> mappings)
focal_class.full_signature: protected void importMappings(String name, Iterator<String> it, ResourceTypes<Resource> resourceTypes,
  			Mappings<Task, Resource> mappings)
focal_class.identifier: importMappings
focal_class.modifiers: protected
focal_class.parameters: (String name, Iterator<String> it, ResourceTypes<Resource> resourceTypes,
  			Mappings<Task, Resource> mappings)
focal_class.return: void
focal_class.signature: void importMappings(String name, Iterator<String> it, ResourceTypes<Resource> resourceTypes,
  			Mappings<Task, Resource> mappings)
focal_class.class_method_signature: ReaderTGFF.importMessageSizes(Iterator<String> it)
focal_class.full_signature: protected Map<String, Double> importMessageSizes(Iterator<String> it)
focal_class.identifier: importMessageSizes
focal_class.modifiers: protected
focal_class.parameters: (Iterator<String> it)
focal_class.return: Map<String, Double>
focal_class.signature: Map<String, Double> importMessageSizes(Iterator<String> it)
focal_class.class_method_signature: ReaderTGFF.importLink(Iterator<String> it, LinkTypes<Link> linkTypes)
focal_class.full_signature: protected void importLink(Iterator<String> it, LinkTypes<Link> linkTypes)
focal_class.identifier: importLink
focal_class.modifiers: protected
focal_class.parameters: (Iterator<String> it, LinkTypes<Link> linkTypes)
focal_class.return: void
focal_class.signature: void importLink(Iterator<String> it, LinkTypes<Link> linkTypes)
focal_class.class_method_signature: ReaderTGFF.importHyperperiod(String line)
focal_class.full_signature: protected double importHyperperiod(String line)
focal_class.identifier: importHyperperiod
focal_class.modifiers: protected
focal_class.parameters: (String line)
focal_class.return: double
focal_class.signature: double importHyperperiod(String line)
focal_class.class_method_signature: ReaderTGFF.isComment(String line)
focal_class.full_signature: protected boolean isComment(String line)
focal_class.identifier: isComment
focal_class.modifiers: protected
focal_class.parameters: (String line)
focal_class.return: boolean
focal_class.signature: boolean isComment(String line)
focal_class.class_method_signature: ReaderTGFF.isClosing(String line)
focal_class.full_signature: protected boolean isClosing(String line)
focal_class.identifier: isClosing
focal_class.modifiers: protected
focal_class.parameters: (String line)
focal_class.return: boolean
focal_class.signature: boolean isClosing(String line)
focal_class.class_method_signature: ReaderTGFF.skip(String line)
focal_class.full_signature: protected boolean skip(String line)
focal_class.identifier: skip
focal_class.modifiers: protected
focal_class.parameters: (String line)
focal_class.return: boolean
focal_class.signature: boolean skip(String line)
focal_method.body: public SpecificationTypeBased toSpecification(List<String> in) {
  
  		Application<Task, Dependency> application = toApplication(in);
  		ResourceTypes<Resource> resourceTypes = toResourceTypes(in);
  		Mappings<Task, Resource> mappings = toMappings(in, resourceTypes);
  
  		return new SpecificationTypeBased(application, resourceTypes, mappings, toLinkTypes(in));
  	}
focal_method.class_method_signature: ReaderTGFF.toSpecification(List<String> in)
focal_method.full_signature: public SpecificationTypeBased toSpecification(List<String> in)
focal_method.identifier: toSpecification
focal_method.invocations: toApplication toResourceTypes toMappings toLinkTypes
focal_method.modifiers: public
focal_method.parameters: (List<String> in)
focal_method.return: SpecificationTypeBased
focal_method.signature: SpecificationTypeBased toSpecification(List<String> in)