public class CORBA_RTCUtil
extends java.lang.Object
Constructor and Description |
---|
CORBA_RTCUtil() |
Modifier and Type | Method and Description |
---|---|
static ReturnCode_t |
activate(RTObject rtc)
Activates RTC
|
static ReturnCode_t |
activate(RTObject rtc,
int ec_id)
Activates RTC via Specified ExecutionContext.
|
static ReturnCode_t |
add_rtc_to_default_ec(RTObject localcomp,
RTObject othercomp)
Add an RT-component to The target RT-Component of ExecutionContext
|
static boolean |
already_connected(PortService localport,
PortService otherport)
S
Cconfirms the connection in specified ports.
|
static ReturnCode_t |
connect_by_name(java.lang.String name,
Properties prop,
RTObject rtc0,
java.lang.String portName0,
RTObject rtc1,
java.lang.String portName1)
Connects the ports specified by the name.
|
static ReturnCode_t |
connect_multi(java.lang.String name,
Properties prop,
PortService port,
PortServiceListHolder target_ports)
Connects all specified ports.
|
static ReturnCode_t |
connect(java.lang.String name,
Properties prop,
PortService port0,
PortService port1)
Connects specified ports.
|
static ConnectorProfile |
create_connector(java.lang.String name,
Properties prop_arg,
PortService port0,
PortService port1)
Gets ConnectorProfile for connect specified ports
|
static ReturnCode_t |
deactivate(RTObject rtc)
Deactivates RTC.
|
static ReturnCode_t |
deactivate(RTObject rtc,
int ec_id)
Deactivates RTC via Specified ExecutionContext.
|
static ReturnCode_t |
disconnect_all_by_name(java.lang.String port_name)
Disconnect all connectors in the target port name.
|
static ReturnCode_t |
disconnect_all_by_ref(PortService port_ref)
Disconnect all connectors in the target port.
|
static ReturnCode_t |
disconnect_by_port_name(PortService localport,
java.lang.String othername)
Disconnects a connection in specified by port.
|
static ReturnCode_t |
disconnect_by_portname_connector_id(java.lang.String port_name,
java.lang.String conn_id)
Disconnects the connectionis specified by id.
|
static ReturnCode_t |
disconnect_by_portname_connector_name(java.lang.String port_name,
java.lang.String conn_name)
Disconnects the connectionis specified by name.
|
static ReturnCode_t |
disconnect_by_portref_connector_id(PortService port,
java.lang.String id)
Disconnects the connectionis specified by id.
|
static ReturnCode_t |
disconnect_by_portref_connector_name(PortService port,
java.lang.String name)
Disconnects the connectionis specified by name.
|
static ReturnCode_t |
disconnect(ConnectorProfile connector_prof)
Disconnects specified connections.
|
static java.lang.String |
get_active_configuration_name(RTObject rtc)
Get Configuration object
|
static Properties |
get_active_configuration(RTObject rtc)
Get Configuration object
|
static ExecutionContext |
get_actual_ec(RTObject rtc)
Get ExecutionContext.
Obtain a reference to the execution context represented
by the given handle and RTC.
|
static ExecutionContext |
get_actual_ec(RTObject rtc,
int ec_id)
Get ExecutionContext.
Obtain a reference to the execution context represented
by the given handle and RTC.
|
static Properties |
get_component_profile(RTObject rtc)
Get RTC's profile
|
static Configuration |
get_configuration(RTObject rtc)
Get Configuration object
|
Properties |
get_configuration(RTObject rtc,
java.lang.String conf_name)
Get Configuration object
|
static java.util.Vector<java.lang.String> |
get_connector_ids_by_portref(PortBase port)
Gets a list of the connectorIDs specified port maintains.
|
static java.util.Vector<java.lang.String> |
get_connector_ids(RTObject rtc,
java.lang.String port_name)
Gets a list of the connectorIDs specified port maintains
of target RTC.
|
static java.util.Vector<java.lang.String> |
get_connector_names_by_portref(PortBase port)
Gets a list of the ports name specified port maintains.
|
static java.util.Vector<java.lang.String> |
get_connector_names(RTObject rtc,
java.lang.String port_name)
Gets a list of the ports name specified port maintains.
|
static double |
get_current_rate(RTObject rtc,
int ec_id)
Get execution rate(Hz) of specified ExecutionContext
|
static double |
get_default_rate(RTObject rtc)
Get execution rate(Hz) of ExecutionContext
|
static int |
get_ec_id(RTObject rtc,
ExecutionContext ec) |
static java.util.Vector<java.lang.String> |
get_inport_names(RTObject rtc)
Gets the inport name a specified RTC maintains.
|
static java.util.Vector<java.lang.String> |
get_outport_names(RTObject rtc)
Gets the outport name a specified RTC maintains.
|
static java.lang.String |
get_parameter_by_key(RTObject rtc,
java.lang.String confset_name,
java.lang.String value_name)
Get Configuration object
|
static RTObject[] |
get_participants_rtc(RTObject rtc)
Getting participant RTC list
|
static PortService |
get_port_by_name(RTObject rtc,
java.lang.String name)
Get a port of the specified name from ports Component maintains.
|
static PortService |
get_port_by_url(java.lang.String port_name)
Gets a port of the designated name.
|
static java.util.Vector<java.lang.String> |
get_port_names(RTObject rtc)
Gets the port name a specified RTC maintains.
|
static LifeCycleState |
get_state(RTObject rtc)
Get RTC's status
|
static LifeCycleState |
get_state(RTObject rtc,
int ec_id)
Get RTC's status
|
static java.util.Vector<java.lang.String> |
get_svcport_names(RTObject rtc)
Gets names of service port a specified RTC maintains.
|
static boolean |
is_alive_in_default_ec(RTObject rtc)
Confirms the existence of EC of RTC.
|
static boolean |
is_existing(RTObject rtc)
Check if the component is alive
|
static boolean |
is_in_active(RTObject rtc)
Confirm to ACTIVE
|
static boolean |
is_in_active(RTObject rtc,
int ec_id)
Confirm to ACTIVE
|
static boolean |
is_in_error(RTObject rtc)
Confirm to ERROR
|
static boolean |
is_in_error(RTObject rtc,
int ec_id)
Confirm to ERROR
|
static boolean |
is_in_inactive(RTObject rtc)
Confirm to INACTIVE
|
static boolean |
is_in_inactive(RTObject rtc,
int ec_id)
Confirm to INACTIVE
|
static ReturnCode_t |
remove_rtc_to_default_ec(RTObject localcomp,
RTObject othercomp)
Remove the RT-Component from participant list of ExecutionContext
|
static ReturnCode_t |
reset(RTObject rtc)
Resets RTC
|
static ReturnCode_t |
reset(RTObject rtc,
int ec_id)
Resets RTC via Specified RTC.
|
static boolean |
set_active_configuration(RTObject rtc,
java.lang.String value_name,
java.lang.String value)
SetConfiguration object
|
static boolean |
set_configuration_parameter(Configuration conf,
ConfigurationSet confset,
java.lang.String value_name,
java.lang.String value)
Set configuration paramters.
|
static boolean |
set_configuration(RTObject rtc,
java.lang.String confset_name,
java.lang.String value_name,
java.lang.String value)
Set Configuration
|
static ReturnCode_t |
set_current_rate(RTObject rtc,
int ec_id,
double rate)
Set execution rate(Hz) of specified ExecutionContext
|
static ReturnCode_t |
set_default_rate(RTObject rtc,
double rate)
Set execution rate(Hz) of ExecutionContext
|
public static Properties get_component_profile(RTObject rtc)
This operation returns the ComponentProfile of the RTC.
rtc
-
public static boolean is_existing(RTObject rtc)
rtc
-
RTComponentpublic static boolean is_alive_in_default_ec(RTObject rtc)
rtc
-
public static ExecutionContext get_actual_ec(RTObject rtc, int ec_id)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static ExecutionContext get_actual_ec(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static int get_ec_id(RTObject rtc, ExecutionContext ec)
rtc
-
Target RT-Component's instancesec
-
ExecutionContextpublic static ReturnCode_t activate(RTObject rtc, int ec_id)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static ReturnCode_t activate(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static ReturnCode_t deactivate(RTObject rtc, int ec_id)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static ReturnCode_t deactivate(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static ReturnCode_t reset(RTObject rtc, int ec_id)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static ReturnCode_t reset(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static LifeCycleState get_state(RTObject rtc, int ec_id)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static LifeCycleState get_state(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static boolean is_in_inactive(RTObject rtc, int ec_id)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static boolean is_in_inactive(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static boolean is_in_active(RTObject rtc, int ec_id)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static boolean is_in_active(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static boolean is_in_error(RTObject rtc, int ec_id)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static boolean is_in_error(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static double get_default_rate(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static ReturnCode_t set_default_rate(RTObject rtc, double rate)
rtc
-
Target RT-Component's instancesrate
-
Execution cycle(Unit:Hz)public static double get_current_rate(RTObject rtc, int ec_id)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static ReturnCode_t set_current_rate(RTObject rtc, int ec_id, double rate)
rtc
-
Target RT-Component's instancesec_id
-
ExecutionContext handlepublic static ReturnCode_t add_rtc_to_default_ec(RTObject localcomp, RTObject othercomp)
localcomp
-
Target RT-Component's instancesothercomp
-
The target RT-Component for addpublic static ReturnCode_t remove_rtc_to_default_ec(RTObject localcomp, RTObject othercomp)
localcomp
-
Target RT-Component's instancesothercomp
-
The target RT-Component for deletepublic static RTObject[] get_participants_rtc(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static java.util.Vector<java.lang.String> get_port_names(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static java.util.Vector<java.lang.String> get_inport_names(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static java.util.Vector<java.lang.String> get_outport_names(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static java.util.Vector<java.lang.String> get_svcport_names(RTObject rtc)
rtc
-
Target RT-Component's instancespublic static PortService get_port_by_name(RTObject rtc, java.lang.String name)
rtc
-
Target RT-Component's instancesname
-
the name of portpublic static java.util.Vector<java.lang.String> get_connector_names_by_portref(PortBase port)
port
-
Target Portpublic static java.util.Vector<java.lang.String> get_connector_names(RTObject rtc, java.lang.String port_name)
rtc
-
Target RT-Component's instancesport_name
-
Target Portpublic static java.util.Vector<java.lang.String> get_connector_ids_by_portref(PortBase port)
port
- 対象のポート
Target Portpublic static java.util.Vector<java.lang.String> get_connector_ids(RTObject rtc, java.lang.String port_name)
rtc
-
Target RT-Component's instancesport_name
-
the name of portpublic static ConnectorProfile create_connector(java.lang.String name, Properties prop_arg, PortService port0, PortService port1)
name
-
connector nameprop_arg
-
connection propertiesport0
-
Target Portport1
-
Target Portpublic static boolean already_connected(PortService localport, PortService otherport)
localport
-
Target Portotherport
-
Target Portpublic static ReturnCode_t connect(java.lang.String name, Properties prop, PortService port0, PortService port1)
name
-
connector nameprop
-
connection propertiesport0
-
Target Portport1
-
Target Portpublic static ReturnCode_t connect_multi(java.lang.String name, Properties prop, PortService port, PortServiceListHolder target_ports)
name
- コネクタ名
connector nameprop
-
connection propertiesport
-
Target Porttarget_ports
-
List of connected portspublic static ReturnCode_t connect_by_name(java.lang.String name, Properties prop, RTObject rtc0, java.lang.String portName0, RTObject rtc1, java.lang.String portName1)
name
-
connector nameprop
-
connection propertiesrtc0
-
Target RT-Component's instancesportName0
-
Target Port namertc1
-
Target RT-Component's instancesportName1
-
Target Port namepublic static ReturnCode_t disconnect(ConnectorProfile connector_prof)
connector_prof
-
Conenctor Profilepublic static ReturnCode_t disconnect_by_portref_connector_name(PortService port, java.lang.String name)
port
-
Target Portname
-
Connector namepublic static ReturnCode_t disconnect_by_portname_connector_name(java.lang.String port_name, java.lang.String conn_name)
port_name
-
Target Port nameconn_name
-
Connector namepublic static ReturnCode_t disconnect_by_portref_connector_id(PortService port, java.lang.String id)
port
-
Target Portid
-
connector idpublic static ReturnCode_t disconnect_by_portname_connector_id(java.lang.String port_name, java.lang.String conn_id)
port_name
-
Target Port Nameconn_id
-
connector idpublic static ReturnCode_t disconnect_all_by_ref(PortService port_ref)
port_ref
-
Object reference of portpublic static ReturnCode_t disconnect_all_by_name(java.lang.String port_name)
port_name
-
port namepublic static PortService get_port_by_url(java.lang.String port_name)
port_name
-
a port namepublic static ReturnCode_t disconnect_by_port_name(PortService localport, java.lang.String othername)
localport
-
Target Portothername
-
port namepublic static Configuration get_configuration(RTObject rtc)
rtc
-
Target RTComponentpublic Properties get_configuration(RTObject rtc, java.lang.String conf_name)
rtc
-
Target RTComponentconf_name
-
name of ConfigurationSetpublic static java.lang.String get_parameter_by_key(RTObject rtc, java.lang.String confset_name, java.lang.String value_name)
rtc
-
Configurationconfset_name
-
ConfigurationSet namevalue_name
-
Paramter namepublic static java.lang.String get_active_configuration_name(RTObject rtc)
rtc
-
RTComponentpublic static Properties get_active_configuration(RTObject rtc)
rtc
-
Target RTComponentpublic static boolean set_configuration(RTObject rtc, java.lang.String confset_name, java.lang.String value_name, java.lang.String value)
confset_name
-
ConfigurationSet namevalue_name
-
ParamterNamevalue
- パラメータ
Paramterpublic static boolean set_active_configuration(RTObject rtc, java.lang.String value_name, java.lang.String value)
rtc
-
Target RTComponentvalue_name
-
ParamterNamevalue
- パラメータ
Paramterpublic static boolean set_configuration_parameter(Configuration conf, ConfigurationSet confset, java.lang.String value_name, java.lang.String value)
conf
- コンフィギュレーション
Configurationmeconfset
-
ConfigurationSetevalue_name
-
ParamterNamevalue
-