public RemoteRobotClientLifecycle(String sourceId, String destId, Robot.Id robotId, String reqSenderId, String respReceiverId, String frameSenderId){ super(new DescriptorListBuilder() .dependency(theRequestSender, MessageSender.class) .with(Constants.PROP_MESSAGE_SENDER_ID, reqSenderId) .with(Constants.PROP_MESSAGE_TYPE, RobotRequest.class.getName()) .dependency(theResponseReceiver, MessageBlockingReceiver.class) .with(Constants.PROP_MESSAGE_RECEIVER_ID, respReceiverId) .with(Constants.PROP_MESSAGE_TYPE, RobotResponse.class.getName()) .dependency(theFrameSender, MessageSender.class) .with(Constants.PROP_MESSAGE_SENDER_ID, frameSenderId) .with(Constants.PROP_MESSAGE_TYPE, MotionFrameEvent.class.getName()) .dependency(theRequestFactory, RobotRequestFactory.class) .dependency(theFrameEventFactory, MotionFrameEventFactory.class) .getDescriptors()); if(sourceId == null || destId == null || robotId == null){ throw new NullPointerException(); } mySourceId = sourceId; myDestId = destId; myRobotId = robotId; if(myRegistrationProperties == null){ myRegistrationProperties = new Properties(); } myRegistrationProperties.put(Robot.PROP_ID, robotId.getRobtIdString()); }
String eventsReceiverId){ super(new DescriptorListBuilder() .dependency(theCommandSender, MessageSender.class) .with(Constants.PROP_MESSAGE_SENDER_ID, commandSenderId) .with(Constants.PROP_MESSAGE_TYPE, ServiceCommand.class.getName()) .dependency(theConfigSender, MessageSender.class) .with(Constants.PROP_MESSAGE_SENDER_ID, configSenderId) .with(Constants.PROP_MESSAGE_TYPE, SpeechConfig.class.getName()) .dependency(theErrorReceiver, MessageAsyncReceiver.class) .with(Constants.PROP_MESSAGE_RECEIVER_ID, errorReceiverId) .with(Constants.PROP_MESSAGE_TYPE, ServiceError.class.getName()) .dependency(theCommandFactory, ServiceCommandFactory.class) .dependency(theRequestSender, MessageSender.class) .with(Constants.PROP_MESSAGE_SENDER_ID, requestSenderId) .with(Constants.PROP_MESSAGE_TYPE, SpeechRequest.class.getName()) .dependency(theEventsReceiver, MessageAsyncReceiver.class) .with(Constants.PROP_MESSAGE_RECEIVER_ID, eventsReceiverId) .with(Constants.PROP_MESSAGE_TYPE, SpeechEventList.class.getName())
String eventsReceiverId){ super(new DescriptorListBuilder() .dependency(theCommandSender, MessageSender.class) .with(Constants.PROP_MESSAGE_SENDER_ID, commandSenderId) .with(Constants.PROP_MESSAGE_TYPE, ServiceCommand.class.getName()) .dependency(theConfigSender, MessageSender.class) .with(Constants.PROP_MESSAGE_SENDER_ID, configSenderId) .with(Constants.PROP_MESSAGE_TYPE, configClass.getName()) .dependency(theErrorReceiver, MessageAsyncReceiver.class) .with(Constants.PROP_MESSAGE_RECEIVER_ID, errorReceiverId) .with(Constants.PROP_MESSAGE_TYPE, ServiceError.class.getName()) .dependency(theSpeechRecReceiver, MessageAsyncReceiver.class) .with(Constants.PROP_MESSAGE_RECEIVER_ID, eventsReceiverId) .with(Constants.PROP_MESSAGE_TYPE, SpeechRecEventList.class.getName())
public RemoteSpeechServiceHostLifecycle( String speechServiceHostId, String remoteId, String speechServiceId, String speechRequestNotifierId, String speechEventListenerId){ super(new DescriptorListBuilder() .dependency(theSpeechService, SpeechService.class) .with(SpeechService.PROP_ID, speechServiceId) .dependency(theSpeechRequestNotifier, Notifier.class) .with(Constants.PROP_MESSAGE_RECEIVER_ID, speechRequestNotifierId) .with(Constants.PROP_MESSAGE_TYPE, SpeechRequest.class.getName()) .dependency(theSpeechEventListener, Listener.class) .with(Constants.PROP_MESSAGE_SENDER_ID, speechEventListenerId) .with(Constants.PROP_MESSAGE_TYPE, SpeechEventList.class.getName()) .getDescriptors()); if(speechServiceHostId == null || remoteId == null){ throw new NullPointerException(); } myLocalServiceId = speechServiceHostId; myRemoteServiceId = remoteId; myRegistrationProperties = new Properties(); myRegistrationProperties.put( RemoteSpeechServiceHost.PROP_ID, myLocalServiceId); }
public VisemeFrameSourceLifecycle( Robot.Id robotId, String speechServiceId){ super(new DescriptorListBuilder() .dependency(theVisemeNotifier, VisemeEventNotifier.class) .with(SpeechService.PROP_ID, speechServiceId) .dependency(theVisemeManager, VisemeBindingManager.class) .with(Robot.PROP_ID, robotId.getRobtIdString()) .getDescriptors()); if(robotId == null || speechServiceId == null){ throw new NullPointerException(); } myRobotId = robotId; myRegistrationProperties = new Properties(); myRegistrationProperties.put( Robot.PROP_ID, myRobotId); }
public RemoteRobotHostLifecycle(String sourceId, String destId, Robot.Id robotId, String reqReceiverId, String respSenderId, String frameReceiverId, String moveHandlerId){ super(new DescriptorListBuilder() .dependency(theRobot, Robot.class) .with(Robot.PROP_ID, robotId.getRobtIdString()) .dependency(theRequestReceiver, MessageAsyncReceiver.class) .with(Constants.PROP_MESSAGE_RECEIVER_ID, reqReceiverId) .with(Constants.PROP_MESSAGE_TYPE, RobotRequest.class.getName()) .dependency(theResponseSender, MessageSender.class) .with(Constants.PROP_MESSAGE_SENDER_ID, respSenderId) .with(Constants.PROP_MESSAGE_TYPE, RobotResponse.class.getName()) .dependency(theFrameReceiver, MessageAsyncReceiver.class) .with(Constants.PROP_MESSAGE_RECEIVER_ID, frameReceiverId) .with(Constants.PROP_MESSAGE_TYPE, MotionFrameEvent.class.getName()) .dependency(theMoveHandler, Listener.class) .with(ListenerConstants.PROP_LISTENER_ID, moveHandlerId) .with(ListenerConstants.PROP_LISTENER_TYPE, MotionFrameEvent.class.getName()) .dependency(theResponseFactory, RobotResponseFactory.class) .getDescriptors()); if(sourceId == null || destId == null){ throw new NullPointerException(); } mySourceId = sourceId; myDestId = destId; }
public RobotBlenderLifecycle(Robot.Id robotId){ super(new DescriptorListBuilder() .dependency(theBlenderOutputId, BlenderOutput.class) .with(Robot.PROP_ID, robotId.getRobtIdString()) .with(Blender.PROP_POSITION_MAP_TYPE, Robot.RobotPositionMap.class.getName()) .dependency(theFrameCombinerId, FrameCombiner.class) .with(Robot.PROP_ID, robotId.getRobtIdString()) .with(Blender.PROP_POSITION_MAP_TYPE, Robot.RobotPositionMap.class.getName()) .getDescriptors()); if(myRegistrationProperties == null){ myRegistrationProperties = new Properties(); } myRegistrationProperties.put(Robot.PROP_ID, robotId.getRobtIdString()); myRegistrationProperties.put(Blender.PROP_POSITION_MAP_TYPE, RobotPositionMap.class.getName()); }
public TimedBlenderDriverLifecycle( Robot.Id robotId, long blenderIntervalMillisec){ super(new DescriptorListBuilder() .dependency(theBlender, Blender.class) .with(Robot.PROP_ID, robotId.getRobtIdString()) .with(Blender.PROP_POSITION_MAP_TYPE, Robot.RobotPositionMap.class.getName()) .dependency(theFrameTracker, FrameSourceTracker.class) .with(Robot.PROP_ID, robotId.getRobtIdString()) .with(Blender.PROP_POSITION_MAP_TYPE, Robot.RobotPositionMap.class.getName()) .getDescriptors()); myBlenderInterval = blenderIntervalMillisec; if(myRegistrationProperties == null){ myRegistrationProperties = new Properties(); } myRegistrationProperties.put(Robot.PROP_ID, robotId.getRobtIdString()); }
public RobotChannelsLifecycle(Robot.Id robotId){ super(new DescriptorListBuilder() .dependency(theRobot, Robot.class) .with(Robot.PROP_ID, robotId.getRobtIdString()) .dependency(theJointGroup, JointGroup.class) .with(Robot.PROP_ID, robotId.getRobtIdString()) .optional() .getDescriptors()); if(myRegistrationProperties == null){ myRegistrationProperties = new Properties(); } myRegistrationProperties.put(Robot.PROP_ID, robotId.getRobtIdString()); }