[ libohymos | Source | Keywords | Summary | Ancestors | All Members | Descendants ]
Back to the top of Relay_port
The Relay_port has a data member "sender". "sender" is used to store the pointer to the sender which sends data packs to the current port.
Member functions for
are defined.
Only one port can be connected to the port for receiving data packs. More than one ports can be connected to the ports which sending data packs.
クラス Relay_port では,
Relay_port に接続できる送信元端子は一つだけです.
Relay_port には, 複数の送信先端子を接続できます.
・データパック送信元端子 : sender
を記憶し,
・送信元端子との接続機能
・送信先端子との接続機能
を定義しました. 送信元端子とは,この中継端子にデータを送ってくる側の
端子です。送信先端子とは,この中継端子から送られるデータを受けとる側
の端子です。
Back to the top of Relay_port
void* sender;
Address of the sender which sends data packs to this Relay_port
casted to type void*
void* sender;
Back to the top of Relay_port
char* Data_pack_type(void) ;
Returns the string which shows the type of data packs which are
treated by this Relay_port.
In derived classes of the class Relay_port, this funstion should be defined so that it returnts the data_pack type string. For example, for the Relay_port which treats int, define as
char* Data_pack_type(void) { return "INT"; }
基底クラス Sender_port の純粋仮想関数です.
この Relay_port でも純粋仮想関数としておきます.
Relay_port の派生クラスで, 中継データパック型を表す文字列へのポイ
ンタを返すように必ず定義して下さい.
例えば, 中継データパック型が "INT" である派生クラスでは,
接続時には, 接続する端子とこの端子の Data_pack_type が一致するこ
とを確認します.
char* Data_pack_type(void) { return "INT"; }
のように定義します.
RETURN:
・char* 中継データパック型を表す文字列へのポインタ.
virtual char* Data_pack_type(void) = NULL;
Back to the top of Relay_port
Boolean Set_sender(void* s);
Sets the sender of this Relay_port to s
Boolean Set_sender(void* s);
Back to the top of Relay_port
Boolean Are_you_ready(void) ;
Reports whether this Relay_port is ready or not. When "sender" and
"number_of_receivers" have been defined, it returns YES, otherwise
it returns NO.
Boolean Are_you_ready(void) ;
Function is currently defined inline.
Back to the top of Relay_port
void Set_data_pack_array(void) ;
Orders the sender to create a data_pack array.
void Set_data_pack_array(void) ;
Function is currently defined inline.
Back to the top of Relay_port
time_t Oldest_data_time(void) ;
Returns the oldest data time of the data stocked in the sender.
time_t Oldest_data_time(void) ;
Function is currently defined inline.
Back to the top of Relay_port
time_t Newest_data_time(void) ;
Returns the newest data time of the data stocked in the sender.
time_t Newest_data_time(void) ;
Function is currently defined inline.
Back to the top of Relay_port
int Number_of_data_packs(void) ;
Returns the number of datapacks which stored in the sender
int Number_of_data_packs(void) ;
Function is currently defined inline.
Back to the top of Relay_port
Boolean Can_you_get_data(time_t t_from, time_t t_to) ;
Reports whether this Relay_port can get the data from t_from
to t_to
Boolean Can_you_get_data(time_t t_from, time_t t_to) ;
Function is currently defined inline.
Back to the top of Relay_port
void Creq(void) ;
void Creq(void) ;
Function is currently defined inline.
Back to the top of Relay_port
void Get_data_pack_array(void**& dp_array, int& num_of_dp) ;
Get datapack array dp_array and the number of datapacks
num_of_fp from the sender.
void Get_data_pack_array(void**& dp_array, int& num_of_dp) ;
Function is currently defined inline.
Back to the top of Relay_port
Boolean Get_data_pack(void*& former, time_t data_time, void*& later, char flag ) ;
Get two pointers to datapacks former and
later. former is
the pointer to the newest datapack before time
data_time. later is the pointer to the
oldest datapack after data_time.
flag specifies the option
When the pointer(s) specified by flag can be got, it returns YES, otherwise NO.
Boolean Get_data_pack(void*& former, time_t data_time, void*& later, char flag = 'b') ;
Function is currently defined inline.
Back to the top of Relay_port
void Reduce_data_pack_stock(void) ;
Forwards the message Reduce_data_pack_stock() to the sender
void Reduce_data_pack_stock(void) ;
Function is currently defined inline.
Back to the top of Relay_port
void Print_connection(FILE* fp_out , char* head );
Prints the information about connection of this Relay_port.
This function is used for debugging.
void Print_connection(FILE* fp_out = stderr, char* head = " ");
Back to the top of Relay_port
Boolean Init(char* p_name, int p_num) ;
Sets the object name to p_name and the object number
to p_num
Boolean Init(char* p_name, int p_num) ;
Function is currently defined inline.
Back to the top of Relay_port
Relay_port(char* p_name, int p_num);
Constructor.
Sets the object name to p_name and the object number
to p_num
Relay_port(char* p_name, int p_num);
Back to the top of Relay_port
Relay_port(void);
Constructor.
Relay_port(void);
Back to the top of Relay_port
~Relay_port(void);
Destructor.
~Relay_port(void);
Back to the top of Relay_port
Back to the top of Relay_port
Back to the top of Relay_port
Back to the top of Relay_port
Report problems to jkotula@stratasys.com