Пример #1
0
 public Edit edit() // Edit in a map redefine
     {
   TempCache tempCache = TempCacheLocator.getTLSTempCache();
   DeclareTypeEditInMapRedefine declareTypeEditInMapRedefine =
       tempCache.getDeclareTypeEditInMapRedefine();
   declareTypeEditInMapRedefine.set(this);
   EditInMapRedefine var2Edit = new EditInMapRedefine(declareTypeEditInMapRedefine);
   return var2Edit;
 }
Пример #2
0
 public void doStart() {
   if (!m_csTermID.equals("")) {
     assertIfFalse(m_Environment.getTerminalID().equals(m_csTermID));
     m_Environment.enqueueProgram(m_csTransID, m_data);
   } else {
     TempCache t = TempCacheLocator.getTLSTempCache();
     String csCurrentProgram = t.getProgramManager().getProgramName();
     m_Environment.StartAsynchronousProgram(
         m_csTransID, csCurrentProgram, m_data, m_nIntervalTimeSeconds);
   }
 }
Пример #3
0
  VarDefBuffer getCachedGetAt(TempCache cache, int x) {
    assertIfFalse(x > 0);

    if (cache != null) {
      int nTypeId = getTypeId();
      CoupleVar coupleVarGetAt = cache.getTempVar(nTypeId);
      if (coupleVarGetAt != null) {
        // Adjust varDefGetAt to m_varDef.getAt(x); It is already created in the correct type
        int nAbsStart = getAbsStart(x - 1);
        int nDebugIndex = VarDefBase.makeDebugIndex(x);
        adjustSetting(coupleVarGetAt.m_varDefBuffer, nAbsStart, nDebugIndex, 1, m_varDefParent);
        return coupleVarGetAt.m_varDefBuffer;
      }
      VarDefBuffer varDefGetAt = createVarDefAt(x - 1, m_varDefParent);
      cache.addTempVar(nTypeId, varDefGetAt, null);
      return varDefGetAt;
    }
    VarDefBuffer varDefItem = createVarDefAt(x - 1, m_varDefParent);
    return varDefItem;
  }
Пример #4
0
 public void getChildrenEncodingConvertiblePosition(
     VarDefEncodingConvertibleManager varDefEncodingConvertibleManager) {
   if (m_arrChildren != null) {
     int nNbChildren = m_arrChildren.size();
     for (int nChild = 0; nChild < nNbChildren; nChild++) {
       VarDefBase varDefChild = getChild(nChild);
       if (!varDefChild.isARedefine())
         varDefChild.getChildrenEncodingConvertiblePosition(varDefEncodingConvertibleManager);
     }
   } else // No child: We are a final node
   {
     if (!isARedefine() && isEbcdicAsciiConvertible()) {
       int nNbDim = getNbDim();
       if (nNbDim == 0) varDefEncodingConvertibleManager.add(this);
       else if (nNbDim == 1) {
         TempCache cache = TempCacheLocator.getTLSTempCache();
         int nNbX = getMaxIndexAtDim(0);
         for (int x = 0; x < nNbX; x++) {
           VarDefBuffer varDefItem = getCachedGetAt(cache, x + 1);
           if (varDefItem != null) varDefEncodingConvertibleManager.add(varDefItem);
           cache.resetTempVarIndex(varDefItem.getTypeId());
         }
       } else if (nNbDim == 2) {
         TempCache cache = TempCacheLocator.getTLSTempCache();
         int nNbY = getMaxIndexAtDim(1);
         int nNbX = getMaxIndexAtDim(0);
         for (int y = 0; y < nNbY; y++) {
           for (int x = 0; x < nNbX; x++) {
             VarDefBuffer varDefItem = getCachedGetAt(cache, y + 1, x + 1);
             if (varDefItem != null) varDefEncodingConvertibleManager.add(varDefItem);
             cache.resetTempVarIndex(varDefItem.getTypeId());
           }
         }
       } else if (nNbDim == 3) {
         TempCache cache = TempCacheLocator.getTLSTempCache();
         int nNbZ = getMaxIndexAtDim(2);
         int nNbY = getMaxIndexAtDim(1);
         int nNbX = getMaxIndexAtDim(0);
         for (int z = 0; z < nNbZ; z++) {
           for (int y = 0; y < nNbY; y++) {
             for (int x = 0; x < nNbX; x++) {
               VarDefBuffer varDefItem = getCachedGetAt(cache, z + 1, y + 1, x + 1);
               if (varDefItem != null) varDefEncodingConvertibleManager.add(varDefItem);
               cache.resetTempVarIndex(varDefItem.getTypeId());
             }
           }
         }
       }
     }
   }
 }