test_class.file: opendse-io/src/test/java/net/sf/opendse/io/SpecificationReaderTest.java
test_class.identifier: SpecificationReaderTest
test_case.body: @Test
  	public void toApplicationTest() throws ValidityException, ParsingException, IOException, ClassNotFoundException,
  			InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
  		nu.xom.Element eApp = new nu.xom.Element("application", SpecificationWriter.NS);
  		nu.xom.Element r1 = new nu.xom.Element("task", SpecificationWriter.NS);
  		r1.addAttribute(new Attribute("id", "r1"));
  		eApp.appendChild(r1);
  		nu.xom.Element r2 = new nu.xom.Element("communication", SpecificationWriter.NS);
  		r2.addAttribute(new Attribute("id", "r2"));
  		eApp.appendChild(r2);
  		nu.xom.Element l = new nu.xom.Element("dependency", SpecificationWriter.NS);
  		l.addAttribute(new Attribute("id", "l"));
  		l.addAttribute(new Attribute("source", "r1"));
  		l.addAttribute(new Attribute("destination", "r2"));
  		eApp.appendChild(l);
  
  		SpecificationReader r = new SpecificationReader();
  		Application<Task, Dependency> application = r.toApplication(eApp);
  
  		Assert.assertNotNull(application.getVertex("r1"));
  		Assert.assertNotNull(application.getVertex("r2"));
  		Assert.assertNotNull(application.getEdge("l"));
  	}
test_case.class_method_signature: SpecificationReaderTest.toApplicationTest()
test_case.full_signature: @Test public void toApplicationTest()
test_case.identifier: toApplicationTest
test_case.invocations: addAttribute appendChild addAttribute appendChild addAttribute addAttribute addAttribute appendChild toApplication assertNotNull getVertex assertNotNull getVertex assertNotNull getEdge
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toApplicationTest()
focal_class.declarator: knownElements = new HashMap<String, Element>()
focal_class.modifier: protected
focal_class.original_string: protected Map<String, Element> knownElements = new HashMap<String, Element>();
focal_class.type: Map<String, Element>
focal_class.var_name: knownElements
focal_class.file: opendse-io/src/main/java/net/sf/opendse/io/SpecificationReader.java
focal_class.identifier: SpecificationReader
focal_class.class_method_signature: SpecificationReader.read(String filename)
focal_class.full_signature: public Specification read(String filename)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (String filename)
focal_class.return: Specification
focal_class.signature: Specification read(String filename)
focal_class.class_method_signature: SpecificationReader.read(File file)
focal_class.full_signature: public Specification read(File file)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.return: Specification
focal_class.signature: Specification read(File file)
focal_class.class_method_signature: SpecificationReader.read(InputStream in)
focal_class.full_signature: public Specification read(InputStream in)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (InputStream in)
focal_class.return: Specification
focal_class.signature: Specification read(InputStream in)
focal_class.class_method_signature: SpecificationReader.toSpecification(nu.xom.Element eSpecification)
focal_class.full_signature: public Specification toSpecification(nu.xom.Element eSpecification)
focal_class.identifier: toSpecification
focal_class.modifiers: public
focal_class.parameters: (nu.xom.Element eSpecification)
focal_class.return: Specification
focal_class.signature: Specification toSpecification(nu.xom.Element eSpecification)
focal_class.class_method_signature: SpecificationReader.toRoutings(nu.xom.Element eRoutings,
  			Architecture<Resource, Link> architecture, Application<Task, Dependency> application)
focal_class.full_signature: protected Routings<Task, Resource, Link> toRoutings(nu.xom.Element eRoutings,
  			Architecture<Resource, Link> architecture, Application<Task, Dependency> application)
focal_class.identifier: toRoutings
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eRoutings,
  			Architecture<Resource, Link> architecture, Application<Task, Dependency> application)
focal_class.return: Routings<Task, Resource, Link>
focal_class.signature: Routings<Task, Resource, Link> toRoutings(nu.xom.Element eRoutings,
  			Architecture<Resource, Link> architecture, Application<Task, Dependency> application)
focal_class.class_method_signature: SpecificationReader.toRouting(nu.xom.Element eRouting, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.full_signature: protected Architecture<Resource, Link> toRouting(nu.xom.Element eRouting, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.identifier: toRouting
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eRouting, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.return: Architecture<Resource, Link>
focal_class.signature: Architecture<Resource, Link> toRouting(nu.xom.Element eRouting, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.class_method_signature: SpecificationReader.toMappings(nu.xom.Element eMappings, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.full_signature: protected Mappings<Task, Resource> toMappings(nu.xom.Element eMappings, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.identifier: toMappings
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eMappings, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.return: Mappings<Task, Resource>
focal_class.signature: Mappings<Task, Resource> toMappings(nu.xom.Element eMappings, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.class_method_signature: SpecificationReader.toApplication(nu.xom.Element eApplication)
focal_class.full_signature: protected Application<Task, Dependency> toApplication(nu.xom.Element eApplication)
focal_class.identifier: toApplication
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eApplication)
focal_class.return: Application<Task, Dependency>
focal_class.signature: Application<Task, Dependency> toApplication(nu.xom.Element eApplication)
focal_class.class_method_signature: SpecificationReader.parseDependency(nu.xom.Element eDependency, Application<Task, Dependency> application)
focal_class.full_signature: protected void parseDependency(nu.xom.Element eDependency, Application<Task, Dependency> application)
focal_class.identifier: parseDependency
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eDependency, Application<Task, Dependency> application)
focal_class.return: void
focal_class.signature: void parseDependency(nu.xom.Element eDependency, Application<Task, Dependency> application)
focal_class.class_method_signature: SpecificationReader.toArchitecture(nu.xom.Element eArch)
focal_class.full_signature: protected Architecture<Resource, Link> toArchitecture(nu.xom.Element eArch)
focal_class.identifier: toArchitecture
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eArch)
focal_class.return: Architecture<Resource, Link>
focal_class.signature: Architecture<Resource, Link> toArchitecture(nu.xom.Element eArch)
focal_class.class_method_signature: SpecificationReader.parseLink(nu.xom.Element eLink, Architecture<Resource, Link> architecture)
focal_class.full_signature: protected void parseLink(nu.xom.Element eLink, Architecture<Resource, Link> architecture)
focal_class.identifier: parseLink
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eLink, Architecture<Resource, Link> architecture)
focal_class.return: void
focal_class.signature: void parseLink(nu.xom.Element eLink, Architecture<Resource, Link> architecture)
focal_class.class_method_signature: SpecificationReader.getClass(nu.xom.Element eElement)
focal_class.full_signature: @SuppressWarnings("unchecked") protected Class<C> getClass(nu.xom.Element eElement)
focal_class.identifier: getClass
focal_class.modifiers: @SuppressWarnings("unchecked") protected
focal_class.parameters: (nu.xom.Element eElement)
focal_class.return: Class<C>
focal_class.signature: Class<C> getClass(nu.xom.Element eElement)
focal_class.class_method_signature: SpecificationReader.getClass(String name)
focal_class.full_signature: protected Class<?> getClass(String name)
focal_class.identifier: getClass
focal_class.modifiers: protected
focal_class.parameters: (String name)
focal_class.return: Class<?>
focal_class.signature: Class<?> getClass(String name)
focal_class.class_method_signature: SpecificationReader.toNode(nu.xom.Element eNode, N parent)
focal_class.full_signature: @SuppressWarnings("unchecked") protected N toNode(nu.xom.Element eNode, N parent)
focal_class.identifier: toNode
focal_class.modifiers: @SuppressWarnings("unchecked") protected
focal_class.parameters: (nu.xom.Element eNode, N parent)
focal_class.return: N
focal_class.signature: N toNode(nu.xom.Element eNode, N parent)
focal_class.class_method_signature: SpecificationReader.toEdge(nu.xom.Element eEdge, E parent)
focal_class.full_signature: protected E toEdge(nu.xom.Element eEdge, E parent)
focal_class.identifier: toEdge
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eEdge, E parent)
focal_class.return: E
focal_class.signature: E toEdge(nu.xom.Element eEdge, E parent)
focal_class.class_method_signature: SpecificationReader.toMapping(nu.xom.Element eMapping, Task source, Resource target)
focal_class.full_signature: protected M toMapping(nu.xom.Element eMapping, Task source, Resource target)
focal_class.identifier: toMapping
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eMapping, Task source, Resource target)
focal_class.return: M
focal_class.signature: M toMapping(nu.xom.Element eMapping, Task source, Resource target)
focal_class.class_method_signature: SpecificationReader.toAttributes(nu.xom.Element eAttributes)
focal_class.full_signature: protected Attributes toAttributes(nu.xom.Element eAttributes)
focal_class.identifier: toAttributes
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eAttributes)
focal_class.return: Attributes
focal_class.signature: Attributes toAttributes(nu.xom.Element eAttributes)
focal_class.class_method_signature: SpecificationReader.toAttribute(nu.xom.Element eAttribute)
focal_class.full_signature: protected Object toAttribute(nu.xom.Element eAttribute)
focal_class.identifier: toAttribute
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eAttribute)
focal_class.return: Object
focal_class.signature: Object toAttribute(nu.xom.Element eAttribute)
focal_class.class_method_signature: SpecificationReader.toAttributeCollection(nu.xom.Element eAttribute, Class<?> clazz)
focal_class.full_signature: @SuppressWarnings({ "rawtypes", "unchecked" }) protected Object toAttributeCollection(nu.xom.Element eAttribute, Class<?> clazz)
focal_class.identifier: toAttributeCollection
focal_class.modifiers: @SuppressWarnings({ "rawtypes", "unchecked" }) protected
focal_class.parameters: (nu.xom.Element eAttribute, Class<?> clazz)
focal_class.return: Object
focal_class.signature: Object toAttributeCollection(nu.xom.Element eAttribute, Class<?> clazz)
focal_class.class_method_signature: SpecificationReader.toAttributeObject(String value, Class<?> clazz)
focal_class.full_signature: protected Object toAttributeObject(String value, Class<?> clazz)
focal_class.identifier: toAttributeObject
focal_class.modifiers: protected
focal_class.parameters: (String value, Class<?> clazz)
focal_class.return: Object
focal_class.signature: Object toAttributeObject(String value, Class<?> clazz)
focal_class.class_method_signature: SpecificationReader.getRange(String value)
focal_class.full_signature: protected ParameterRange getRange(String value)
focal_class.identifier: getRange
focal_class.modifiers: protected
focal_class.parameters: (String value)
focal_class.return: ParameterRange
focal_class.signature: ParameterRange getRange(String value)
focal_class.class_method_signature: SpecificationReader.getRangeInt(String value)
focal_class.full_signature: protected ParameterRangeDiscrete getRangeInt(String value)
focal_class.identifier: getRangeInt
focal_class.modifiers: protected
focal_class.parameters: (String value)
focal_class.return: ParameterRangeDiscrete
focal_class.signature: ParameterRangeDiscrete getRangeInt(String value)
focal_class.class_method_signature: SpecificationReader.getSelectRefList(String type, String value)
focal_class.full_signature: protected ParameterSelect getSelectRefList(String type, String value)
focal_class.identifier: getSelectRefList
focal_class.modifiers: protected
focal_class.parameters: (String type, String value)
focal_class.return: ParameterSelect
focal_class.signature: ParameterSelect getSelectRefList(String type, String value)
focal_class.class_method_signature: SpecificationReader.getUniqueID(String value)
focal_class.full_signature: protected ParameterUniqueID getUniqueID(String value)
focal_class.identifier: getUniqueID
focal_class.modifiers: protected
focal_class.parameters: (String value)
focal_class.return: ParameterUniqueID
focal_class.signature: ParameterUniqueID getUniqueID(String value)
focal_method.body: protected Application<Task, Dependency> toApplication(nu.xom.Element eApplication)
  			throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException,
  			InvocationTargetException, NoSuchMethodException, ClassNotFoundException {
  		Application<Task, Dependency> application = new Application<Task, Dependency>();
  
  		nu.xom.Elements eTasks = eApplication.getChildElements("task", SpecificationWriter.NS);
  		for (nu.xom.Element eTask : iterable(eTasks)) {
  			Task task = toNode(eTask, null);
  			application.addVertex(task);
  		}
  		nu.xom.Elements eCommunications = eApplication.getChildElements("communication", SpecificationWriter.NS);
  		for (nu.xom.Element eCommunication : iterable(eCommunications)) {
  			Communication communication = toNode(eCommunication, null);
  			application.addVertex(communication);
  		}
  
  		nu.xom.Elements eDependencies = eApplication.getChildElements("dependency", SpecificationWriter.NS);
  		for (nu.xom.Element eDependency : iterable(eDependencies)) {
  			parseDependency(eDependency, application);
  		}
  
  		nu.xom.Element eFunctions = eApplication.getFirstChildElement("functions", SpecificationWriter.NS);
  		if (eFunctions != null) {
  			nu.xom.Elements eFuncs = eFunctions.getChildElements("function", SpecificationWriter.NS);
  			for (nu.xom.Element eFunc : iterable(eFuncs)) {
  				Task task = application.getVertex(eFunc.getAttributeValue("anchor"));
  				Function<Task, Dependency> function = application.getFunction(task);
  				Attributes attributes = toAttributes(eFunc.getFirstChildElement("attributes", SpecificationWriter.NS));
  				setAttributes(function, attributes);
  			}
  		}
  
  		return application;
  	}
focal_method.class_method_signature: SpecificationReader.toApplication(nu.xom.Element eApplication)
focal_method.full_signature: protected Application<Task, Dependency> toApplication(nu.xom.Element eApplication)
focal_method.identifier: toApplication
focal_method.invocations: getChildElements iterable toNode addVertex getChildElements iterable toNode addVertex getChildElements iterable parseDependency getFirstChildElement getChildElements iterable getVertex getAttributeValue getFunction toAttributes getFirstChildElement setAttributes
focal_method.modifiers: protected
focal_method.parameters: (nu.xom.Element eApplication)
focal_method.return: Application<Task, Dependency>
focal_method.signature: Application<Task, Dependency> toApplication(nu.xom.Element eApplication)