Exemplo n.º 1
0
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() ) {}
Exemplo n.º 2
0
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() ) {}
Exemplo n.º 3
0
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();
}
Exemplo n.º 5
0
void
SimulationObject::setSimulationTime( const VTime &newSimulationTime ){
  ASSERT( newSimulationTime >= newSimulationTime.getZero() );
  delete localVirtualTime;
  localVirtualTime = newSimulationTime.clone();
}
Exemplo n.º 6
0
void
DefaultSchedulingManager::setLastScheduledEventTime( const VTime &newTime ) {
    delete lastScheduledTime;
    lastScheduledTime = newTime.clone();
}