コード例 #1
0
//Default constructor
JointActionHistory::JointActionHistory(PlanningUnitMADPDiscrete& pu) :
     Referrer<PlanningUnitMADPDiscrete>(pu)
{
    SetLength(0);
    _m_jointActionI = 0;
    _m_isEmpty = true;
    _m_pred = 0;
    size_t nrAgents = pu.GetNrAgents();
    _m_individualActionHistories = vector<Index>::vector(nrAgents,0);
}
コード例 #2
0
//Default constructor
JointObservationHistory::JointObservationHistory(PlanningUnitMADPDiscrete& pu) :
    Referrer<PlanningUnitMADPDiscrete>(pu)
{
    SetLength(0);
    _m_jointObservationI = 0;
    _m_containsEmptyJOI = true;
    _m_pred = 0;
    size_t nrAgents = pu.GetNrAgents();
    _m_individualObservationHistories = vector<Index>(nrAgents,0);
}