system/src/sc/layer/LayeredSystem.java
private void updateSystemLayers(LayeredSystem peerSys, boolean specifiedOnly) {
      if (peerMode)
         System.err.println("*** Warning - updating system layers from a peer system!");

      if (getNeedsProcess(peerSys.processDefinition)) {
         ArrayList<String> newPeerLayers = new ArrayList<String>();
         ArrayList<String> dynLayers = new ArrayList<String>();
         // Here only include layers that are included by a specified layer
         addIncludedLayerNamesForProc(peerSys.processDefinition, newPeerLayers, dynLayers, specifiedOnly);
         if (newPeerLayers.size() > 0) {
            peerSys.initLayersWithNames(newPeerLayers, false, false, dynLayers, true, true);
         }
      }
   }
/**
    * Designed to be called from the main layered system
    */
Designed to be called from the main layered system
Designed to be called from the main layered system
private void updateSystemLayers(LayeredSystem peerSys, boolean specifiedOnly) {
      if (peerMode)
         System.err.println("*** Warning - updating system layers from a peer system!");
      if (getNeedsProcess(peerSys.processDefinition)) {
         ArrayList<String> newPeerLayers = new ArrayList<String>();
         ArrayList<String> dynLayers = new ArrayList<String>();
         addIncludedLayerNamesForProc(peerSys.processDefinition, newPeerLayers, dynLayers, specifiedOnly);
         if (newPeerLayers.size() > 0) {
            peerSys.initLayersWithNames(newPeerLayers, false, false, dynLayers, true, true);
         }
      }
   }
private void updateSystemLayers ( LayeredSystem peerSys , boolean specifiedOnly ) { if ( peerMode ) System . err . println ( "*** Warning - updating system layers from a peer system!" ) ; if ( getNeedsProcess ( peerSys . processDefinition ) ) { ArrayList < String > newPeerLayers = new ArrayList < String > ( ) ; ArrayList < String > dynLayers = new ArrayList < String > ( ) ; addIncludedLayerNamesForProc ( peerSys . processDefinition , newPeerLayers , dynLayers , specifiedOnly ) ; if ( newPeerLayers . size ( ) > 0 ) { peerSys . initLayersWithNames ( newPeerLayers , false , false , dynLayers , true , true ) ; } } }
Designed to be called from the main layered system
Designed to be called from the main layered system
// Here only include layers that are included by a specified layer