PortRange
public class PortRange
源码Source
io/agentscope/runtime/sandbox/manager/model/container/PortRange.java:19–38Port Range,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.runtime.sandbox.manager.model.container 包。核心成员包括 getStart、getEnd、PortRange。
A class in io.agentscope.runtime.sandbox.manager.model.container that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.sandbox.manager.model.container.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public PortRange(int start, int end) | 初始化 `PortRange` 实例。 Creates a new instance. |
public PortRange() | 初始化 `PortRange` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public int getStart() | 获取启动。 Returns the start. |
public int getEnd() | 获取结束。 Returns the end. |
构造器详情Constructor Detail
PortRange
public PortRange(int start, int end)
初始化 PortRange 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
start | int | 启动(类型 `int`)。The start. |
end | int | 结束(类型 `int`)。The end. |
源码Source
io/agentscope/runtime/sandbox/manager/model/container/PortRange.java:23–26PortRange
public PortRange()
初始化 PortRange 实例。
Creates a new instance.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/PortRange.java:28–29方法详情Method Detail
getStart
public int getStart()
获取启动。
Returns the start.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/PortRange.java:31–33getEnd
public int getEnd()
获取结束。
Returns the end.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/PortRange.java:35–37