bool ProxyObject::isAggregate() const { PROXY_SERIALIZED(); if (!isPresence()) return SequencedPresenceProperties::isAggregate(); SequencedPresencePropertiesPtr req = mParent->parent()->presenceRequestedLocation(getObjectReference()); uint64 latest_epoch = mParent->parent()->presenceLatestEpoch(getObjectReference()); if (!req || latest_epoch >= req->getUpdateSeqNo(LOC_IS_AGG_PART)) return SequencedPresenceProperties::isAggregate(); return req->isAggregate(); }
String ProxyObject::physics() const { PROXY_SERIALIZED(); if (!isPresence()) return SequencedPresenceProperties::physics(); SequencedPresencePropertiesPtr req = mParent->parent()->presenceRequestedLocation(getObjectReference()); uint64 latest_epoch = mParent->parent()->presenceLatestEpoch(getObjectReference()); if (!req || latest_epoch >= req->getUpdateSeqNo(LOC_PHYSICS_PART)) return SequencedPresenceProperties::physics(); return req->physics(); }
Transfer::URI ProxyObject::mesh() const { PROXY_SERIALIZED(); if (!isPresence()) return SequencedPresenceProperties::mesh(); SequencedPresencePropertiesPtr req = mParent->parent()->presenceRequestedLocation(getObjectReference()); uint64 latest_epoch = mParent->parent()->presenceLatestEpoch(getObjectReference()); if (!req || latest_epoch >= req->getUpdateSeqNo(LOC_MESH_PART)) return SequencedPresenceProperties::mesh(); return req->mesh(); }
TimedMotionQuaternion ProxyObject::orientation() const { PROXY_SERIALIZED(); if (!isPresence()) return SequencedPresenceProperties::orientation(); SequencedPresencePropertiesPtr req = mParent->parent()->presenceRequestedLocation(getObjectReference()); uint64 latest_epoch = mParent->parent()->presenceLatestEpoch(getObjectReference()); if (!req || latest_epoch >= req->getUpdateSeqNo(LOC_ORIENT_PART)) return SequencedPresenceProperties::orientation(); return req->orientation(); }
RoboCupCtrl::RoboCupCtrl() : simTime(false), dragTime(true), lastTime(0), joystickID(0) { controller = this; time = 10000 - SystemCall::getRealSystemTime(); obj = 0; SimObject* group = getObjectReference("RoboCup.robots"); for(unsigned currentRobot = 0; currentRobot < group->getNumberOfChildNodes(); ++currentRobot) { obj = group->getChildNode(currentRobot); robotName = obj->getFullName(); robots.push_back(new Robot(obj->getName().c_str(), obj)); } if(getObjectReference("RoboCup.robots")->getNumberOfChildNodes()) ball = getObjectReference("RoboCup.balls.ball"); else ball = 0; setGUIUpdateDelay(100); }
const NAString StmtDDLDropExceptionTable::displayLabel2() const { return NAString ("Table name: ") + getObjectReference(); }