def add_spec(self, *specs):
for spec in specs:<EOL><INDENT>if not isinstance(spec, HeronComponentSpec):<EOL><INDENT>raise TypeError("<STR_LIT>"<EOL>% str(spec))<EOL><DEDENT>if spec.name is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if spec.name == "<STR_LIT>":<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if spec.name in self._specs:<EOL><INDENT>raise ValueError("<STR_LIT>" % (spec.name, spec))<EOL><DEDENT>self._specs[spec.name] = spec<EOL><DEDENT>
Add specs to the topology

        :type specs: HeronComponentSpec
        :param specs: specs to add to the topology