枚举类的使用
io.agentscope.core.interruption.InterruptSource
使用InterruptSource的程序包
-
io.agentscope.core.agent中InterruptSource的使用
修饰符和类型方法说明protected InterruptSourceAgentBase.getInterruptSource()Get current interruption source.参数类型为InterruptSource的io.agentscope.core.agent中的方法修饰符和类型方法说明voidAgentBase.interrupt(InterruptSource source) Interrupt execution with explicit source. -
io.agentscope.core.interruption中InterruptSource的使用
修饰符和类型方法说明InterruptContext.getSource()Get the source of the interruption.static InterruptSource返回带有指定名称的该类的枚举常量。static InterruptSource[]InterruptSource.values()返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同修饰符和类型方法说明InterruptContext.Builder.source(InterruptSource source) Set the source of the interruption.