10 package jp.go.aist.hrp.simulator;
14 import RTC.ComponentProfile;
15 import RTC.ConnectorProfile;
16 import RTC.ConnectorProfileHolder;
17 import RTC.ExecutionContext;
18 import RTC.LifeCycleState;
19 import RTC.PortService;
21 import RTC.ReturnCode_t;
23 import jp.
go.
aist.rtm.RTC.DataFlowComponentBase;
25 import jp.
go.
aist.rtm.RTC.port.ConnectionCallback;
26 import jp.
go.
aist.rtm.RTC.port.CorbaConsumer;
27 import jp.
go.
aist.rtm.RTC.port.CorbaPort;
48 public void run(ConnectorProfileHolder arg0) {
49 ConnectorProfile[] connectorProfiles =
m_PathPlannerPort.get_connector_profiles();
50 for(ConnectorProfile connectorProfile : connectorProfiles){
51 PortService[] portServices = connectorProfile.ports;
52 for(PortService portService : portServices){
53 RTObject rtObject = portService.get_port_profile().owner;
54 String typeName = rtObject.get_component_profile().type_name;
55 if(typeName.equals(
"Path")){
56 ExecutionContext[] executionContexts = rtObject.get_owned_contexts();
57 for(ExecutionContext executionContext : executionContexts){
58 if(executionContext.get_component_state(rtObject) !=
LifeCycleState.ACTIVE_STATE){
59 if(executionContext.activate_component(rtObject) ==
ReturnCode_t.RTC_OK)
75 public void run(ConnectorProfileHolder arg0) {
192 protected CorbaConsumer<PathPlanner>
m_PathBase =
new CorbaConsumer<PathPlanner>(PathPlanner.class);
GrxPathPlanningAlgorithmItem item_
CorbaPort m_PathPlannerPort
#define null
our own NULL pointer
CorbaConsumer< PathPlanner > m_PathBase
PathConsumerImpl(Manager manager)
void setConnectedCallback(GrxPathPlanningAlgorithmItem item)
void connectedCallback(boolean b)