mirror of
https://github.com/nasa/trick.git
synced 2024-12-25 07:41:08 +00:00
14a75508a3
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
38 lines
994 B
Plaintext
38 lines
994 B
Plaintext
#include "sim_objects/default_trick_sys.sm"
|
|
|
|
##include "stl_checkpoint/include/STLCheckpoint.hh"
|
|
|
|
/* This object tests having 2 of the same type of object containing STLs in the same sim_object.
|
|
The checkpoints use the name of the objects to give the STLs unique and identifiable names
|
|
in the checkpoint. This is done by invoking CHECKPOINT_STL for each variable (see stl_checkpoints.sm) */
|
|
|
|
class theSimObject : public Trick::SimObject {
|
|
|
|
public:
|
|
STLCheckpoint stlc ;
|
|
STLCheckpoint stlc2 ;
|
|
|
|
/** Constructor to add the jobs */
|
|
theSimObject() : stlc(std::string("Petunia")) , stlc2() {
|
|
|
|
(1.0, "scheduled") stlc.speak() ;
|
|
|
|
#include "stl_checkpoints.sm"
|
|
}
|
|
|
|
} ;
|
|
|
|
// Multiple simobjects
|
|
theSimObject the_object ;
|
|
theSimObject the_object2 ;
|
|
|
|
// Connect objects
|
|
void create_connections() {
|
|
|
|
// Set the default termination time
|
|
trick_sys.sched.set_terminate_time(10.0) ;
|
|
trick_sys.sched.set_freeze_frame(0.10) ;
|
|
|
|
}
|
|
|