def _to_rspec(self, slice):
        info = slice.planetlabsliceinfo
        stime, duration = get_start_duration(info.start_time, info.end_time)
        rspec = et.Element("RSpec", dict(
            start_time="%s" % stime,
            duration = "%s" % duration,
        ))
        
        for net in PlanetLabNetwork.objects.filter(aggregate__pk=self):
            rspec.append(net.get_as_elem(slice))
        
        return rspec
Get the index for **component**.
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient_geni/planetlab/sfa-models.py/PlanetLabAggregate._to_rspec--crossover with--dataset/ETHPy150Open typesupply/defcon/Lib/defcon/objects/glyph.py/Glyph.componentIndex