Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 6, 2008, 12:28:14 AM (15 years ago)
Author:
scheusso
Message:

still not complete yet but much better i hope…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/TrafficControl.h

    r2341 r2348  
    5353  unsigned int objValuePerm;
    5454  unsigned int objValueSched;
     55  objInfo(uint32_t ID, uint32_t creatorID, int32_t curGsID, int32_t diffGsID, uint32_t size, unsigned int prioperm, unsigned int priosched)
     56    { objID = ID; objCreatorID = creatorID; objCurGS = curGsID; objDiffGS = diffGsID; objSize = size; objValuePerm = prioperm; objValueSched = priosched; }
    5557};
    5658
     
    9092    *permanent client list: contains client ids, object ids and objectInfos (in this order)
    9193    */
    92     std::map<unsigned int, std::map<unsigned int, std::vector<objInfo> > > clientListPerm_;
     94    std::map<unsigned int, std::map<unsigned int, objInfo > > clientListPerm_;
    9395    //has to be created with constructor and then needs to be updated by evaluateList().
    9496
     
    100102    *static priority list: contains obj id, basic priority (in this order)
    101103    */
    102     std::map<unsigned int, unsigned int> permObjPrio_;
     104//     std::map<unsigned int, unsigned int> permObjPrio_;
    103105    /**
    104106    *dynamic priority list: contains obj id, dynamic priority (eg scheduled) (in this order)
    105107    */
    106     std::map<unsigned int, unsigned int> schedObjPrio_;
     108//     std::map<unsigned int, unsigned int> schedObjPrio_;
    107109    //end: lists to be used
    108110
     
    118120    std::vector<obj> copiedVector;
    119121
    120     void updateReferenceList(std::map<unsigned int, objInfo> *list);//done
    121     void insertinClientListPerm(unsigned int clientid, unsigned int objid, objInfo objinf);//done
     122//     void updateReferenceList(std::map<unsigned int, objInfo> *list);//done
     123    void insertinClientListPerm(unsigned int clientID, obj objinf);//done
    122124    /**
    123125    *creates listToProcess, which can be easialy compared with other lists
    124126    */
    125     void copyList(std::vector<obj> *list);//done
     127//     void copyList(std::vector<obj> *list);//done
    126128   
    127     void cut(std::vector<obj> *list,int targetsize);
     129    void cut(std::vector<obj> *list, unsigned int targetsize);
    128130    void updateClientListTemp(std::vector<obj> *list);//done
    129131    /**
    130132    *evaluates Data given (vector) and produces result(->Data to be updated)
    131133    */
    132     void evaluateList(std::vector<obj> *list);//done
     134    void evaluateList(unsigned int clientID, std::vector<obj> *list);//done
    133135
    134136  protected:
     
    150152    void deleteObject(unsigned int objectID);                           // this function gets called when an object has been deleted (in order to clean up lists and maps)
    151153   
    152     bool priodiffer(obj i, obj j);
     154    bool priodiffer(uint32_t clientID, obj i, obj j);
    153155};
    154156
Note: See TracChangeset for help on using the changeset viewer.