ShellMaturityEvent::ShellMaturityEvent( const VTime & tSend, const VTime & tRecv,
                                        const ObjectID &sender,
                                        const ObjectID & receiver,
                                        const EventId & evtID,
                                        const VTime & tMature ) :
    ClothoEvent( tSend, tRecv, sender, receiver, evtID ),
    m_age_of_maturity( tMature.clone() ) {}
ShellMaturityEvent::ShellMaturityEvent( const VTime & tSend, const VTime & tRecv,
                                        const ObjectID &sender,
                                        const ObjectID & receiver,
                                        const unsigned int evtID ) :
    ClothoEvent( tSend, tRecv, sender, receiver, evtID ),
    m_age_of_maturity( tRecv.clone() ) {}
ShellMaturityEvent::ShellMaturityEvent( const VTime & tSend, const VTime &tRecv,
                                        SimulationObject * sender,
                                        SimulationObject * receiver,
                                        const VTime & tMature ) :
    ClothoEvent( tSend, tRecv, sender, receiver ),
    m_age_of_maturity( tMature.clone() ) {}
void GVTManagerImplementationBase::setGVT( const VTime &newGVT ){
  //It is possible some thread is using gVT so it cant be deleted here
  //for the threadedTimeWarp Version
  //delete gVT;
  gVT = newGVT.clone();
}
示例#5
0
void
SimulationObject::setSimulationTime( const VTime &newSimulationTime ){
  ASSERT( newSimulationTime >= newSimulationTime.getZero() );
  delete localVirtualTime;
  localVirtualTime = newSimulationTime.clone();
}
void
DefaultSchedulingManager::setLastScheduledEventTime( const VTime &newTime ) {
    delete lastScheduledTime;
    lastScheduledTime = newTime.clone();
}