跳至主内容
框架 无框架

类IloCplex::RemoteInfoHandler

定义文件: ilcplex/ilocplexi.h
IloCplex::RemoteInfoHandler的地图IloCplex::RemoteInfoHandlerIloCplex::RemoteInfoHandler

该类是处理来自远程工作者的信息的基类。 您可以派生该类来实现一个处理程序,用于处理远程 Worker 发送的信息。 使用 "setRemoteInfoHandler方法将该类的一个实例安装到 "IloCplex实例中。 同样,使用 "removeRemoteInfoHandler方法卸载 "IloCplex中的该类实例。

另请参阅:

方法概要
protected virtual voidmain(CPXINFOTYPE type, int tag, CPXLONG length, void const * data)
protected RemoteInfoHandler()
public ~RemoteInfoHandler()
方法详细信息

RemoteInfoHandler

protectedRemoteInfoHandler()
构造函数

~RemoteInfoHandler

公共~RemoteInfoHandler()
销毁器

main

protected virtual voidmain(CPXINFOTYPEtype, inttag, CPXLONGlength, void const *data)

该方法处理信息报文。 每当远程 Worker 发送信息时,该方法就会被调用。

参数:

类型

data中的数据类型。

标签
远程工作人员为该信息设置的标签。
length

data中的元素个数 .

数据

原始信息数据。 这是一个由 "length元素组成的数组,其类型由 "type指定。