system/src/sc/layer/LayerListTypeIndex.java
public void buildReverseTypeIndex(LayeredSystem sys) {
      if (reverseIndexBuilt)
         return;
      reverseIndexBuilt = true;

      System.out.println("Start building reverseTypeIndex");
      HashSet<String> visitedLayers = new HashSet<String>();
      for (Map.Entry<String,LayerTypeIndex> typeIndexEntry:typeIndex.entrySet()) {
         String layerName = typeIndexEntry.getKey();
         LayerTypeIndex lti = typeIndexEntry.getValue();

         if (lti.baseLayerNames != null) {
            for (String baseLayerName: lti.baseLayerNames) {
               LayerTypeIndex baseLayerIndex = typeIndex.get(baseLayerName);
               if (baseLayerIndex != null)
                  visitIndexEntry(baseLayerName, baseLayerIndex, visitedLayers, sys);
               // else - probably in another runtime's index...
            }
         }
         visitIndexEntry(layerName, lti, visitedLayers, sys);
      }
      System.out.println("end building reverseTypeIndex");
      reverseIndexValid = true;
   }
/** Optional layered system - used to determined the layer positions used for the type index if present */
Optional layered system - used to determined the layer positions used for the type index if present
Optional layered system - used to determined the layer positions used for the type index if present
public void buildReverseTypeIndex(LayeredSystem sys) {
      if (reverseIndexBuilt)
         return;
      reverseIndexBuilt = true;
      System.out.println("Start building reverseTypeIndex");
      HashSet<String> visitedLayers = new HashSet<String>();
      for (Map.Entry<String,LayerTypeIndex> typeIndexEntry:typeIndex.entrySet()) {
         String layerName = typeIndexEntry.getKey();
         LayerTypeIndex lti = typeIndexEntry.getValue();
         if (lti.baseLayerNames != null) {
            for (String baseLayerName: lti.baseLayerNames) {
               LayerTypeIndex baseLayerIndex = typeIndex.get(baseLayerName);
               if (baseLayerIndex != null)
                  visitIndexEntry(baseLayerName, baseLayerIndex, visitedLayers, sys);
            }
         }
         visitIndexEntry(layerName, lti, visitedLayers, sys);
      }
      System.out.println("end building reverseTypeIndex");
      reverseIndexValid = true;
   }
public void buildReverseTypeIndex ( LayeredSystem sys ) { if ( reverseIndexBuilt ) return ; reverseIndexBuilt = true ; System . out . println ( "Start building reverseTypeIndex" ) ; HashSet < String > visitedLayers = new HashSet < String > ( ) ; for ( Map . Entry < String , LayerTypeIndex > typeIndexEntry : typeIndex . entrySet ( ) ) { String layerName = typeIndexEntry . getKey ( ) ; LayerTypeIndex lti = typeIndexEntry . getValue ( ) ; if ( lti . baseLayerNames != null ) { for ( String baseLayerName : lti . baseLayerNames ) { LayerTypeIndex baseLayerIndex = typeIndex . get ( baseLayerName ) ; if ( baseLayerIndex != null ) visitIndexEntry ( baseLayerName , baseLayerIndex , visitedLayers , sys ) ; } } visitIndexEntry ( layerName , lti , visitedLayers , sys ) ; } System . out . println ( "end building reverseTypeIndex" ) ; reverseIndexValid = true ; }
Optional layered system - used to determined the layer positions used for the type index if present
Optional layered system - used to determined the layer positions used for the type index if present
// else - probably in another runtime's index...