Project

General

Profile

« Previous | Next » 

Revision 3bbe4d67

Added by Leszek Koltunski over 3 years ago

Put new things to the StackFrame.

View differences:

src/main/java/org/distorted/library/main/InternalStackFrame.java
23 23

  
24 24
import java.util.ArrayList;
25 25
import java.util.HashMap;
26
import java.util.HashSet;
26 27
import java.util.LinkedList;
28
import java.util.Set;
27 29

  
28 30
///////////////////////////////////////////////////////////////////////////////////////////////////
29 31

  
......
69 71
  private HashMap<ArrayList<Long>, InternalNodeData> mMapNodeID;  // InternalNodeData
70 72
  private long mNextNodeID;
71 73

  
74
  //////////////////////////////////////////////////////////////////
75
  private Set<InternalMaster.Slave> mSlaves;                      // InternalMaster
76

  
77
  ////////////////////////////////////////////////////////////////// EffectQueue
78
  private long mNextQueueID;                                      //
79
  private HashMap<ArrayList<Long>,Long> mMapID;                   // maps lists of Effect IDs (longs)
80
                                                                  // to a single long - the queue ID.
81

  
72 82
///////////////////////////////////////////////////////////////////////////////////////////////////
73 83

  
74 84
  InternalStackFrame(long taskID)
......
76 86
    mDoneList     = new LinkedList<>();
77 87
    mToDoMap      = new HashMap<>();
78 88
    mMapNodeID    = new HashMap<>();
89
    mSlaves       = new HashSet<>();
90
    mMapID        = new HashMap<>();
79 91
    mNextEffectsID= 0;
80 92
    mNextClientID = 0;
81 93
    mNextSystemID = 0;
82 94
    mNextNodeID   = 0;
95
    mNextQueueID  = 1;
83 96
    mTaskId       = taskID;
84 97
    mMax          = new int[EffectType.LENGTH];
85 98

  
......
285 298
    return false;
286 299
    }
287 300

  
301
///////////////////////////////////////////////////////////////////////////////////////////////////
302

  
303
  public HashMap<ArrayList<Long>,Long> getMap()
304
    {
305
    return mMapID;
306
    }
307

  
308
///////////////////////////////////////////////////////////////////////////////////////////////////
309

  
310
  public long getNextQueueID()
311
    {
312
    mNextQueueID++;
313

  
314
    return mNextQueueID-1;
315
    }
316

  
288 317
///////////////////////////////////////////////////////////////////////////////////////////////////
289 318

  
290 319
  InternalNodeData getMapID(ArrayList<Long> key)
......
308 337
    mMapNodeID.remove(key);
309 338
    }
310 339

  
340
///////////////////////////////////////////////////////////////////////////////////////////////////
341

  
342
  Set<InternalMaster.Slave> getSet()
343
    {
344
    return mSlaves;
345
    }
346

  
311 347
///////////////////////////////////////////////////////////////////////////////////////////////////
312 348

  
313 349
  void debugLists(String frameMarker)

Also available in: Unified diff