public interface IObjectFactory
Modifier and Type | Method and Description |
---|---|
IDisplay |
createDisplay()
• Creates an object instance representing the LCD display of the robot brick.
|
ILightSensor |
createLightSensor(ESensorPort port)
• Creates an object instance representing a light sensor connected to a sensor port.
|
IMotor |
createMotor(EMotorPort port)
• Creates an object instance representing a motor of the robot.
|
IPCConsole |
createPCConsole()
• Creates an object instance representing a console window on a connected PC.
|
IPilot |
createPilot(EMotorPort portLeftMotor,
EMotorPort portRightMotor)
• Creates an object instance representing an auto-pilot for controlling robot motions.
|
IPilot |
createPilot(EMotorPort portLeftMotor,
EMotorPort portRightMotor,
float wheelDiameter,
float wheelbase)
• Creates an object instance representing an auto-pilot for controlling robot motions
with given values for wheel diameter and wheelbase of the robot.
|
ISensor |
createSoundSensor(ESensorPort port)
• Creates an object instance representing a sound sensor connected to a sensor port.
|
ISpeaker |
createSpeaker()
• Creates an object instance representing the speaker of the robot brick.
|
ITimer |
createTimer()
• Creates an object instance representing a timer.
|
ITouchSensor |
createTouchSensor(EButton button)
• Creates an object instance representing a button of the robot brick.
|
ITouchSensor |
createTouchSensor(ESensorPort port)
• Creates an object instance representing a touch sensor connected to a sensor port.
|
ISensor |
createUltrasonicSensor(ESensorPort port)
• Creates an object instance representing an ultrasonic sensor connected to a sensor port.
|
IDisplay createDisplay()
ILightSensor createLightSensor(ESensorPort port)
port
- Port, that the sensor is connected toIMotor createMotor(EMotorPort port)
port
- Port, that the motor is connected toIPCConsole createPCConsole()
IPilot createPilot(EMotorPort portLeftMotor, EMotorPort portRightMotor)
portLeftMotor
- Port, that the left motor is connected toportRightMotor
- Port, that the right motor is connected toIPilot createPilot(EMotorPort portLeftMotor, EMotorPort portRightMotor, float wheelDiameter, float wheelbase)
portLeftMotor
- Port, that the left motor is connected toportRightMotor
- Port, that the right motor is connected towheelDiameter
- wheel diameter of the robot (in cm)wheelbase
- wheelbase of the robot (in cm)ISensor createSoundSensor(ESensorPort port)
port
- Port, that the sensor is connected toISpeaker createSpeaker()
ITimer createTimer()
ITouchSensor createTouchSensor(EButton button)
button
- Button type (ENTER, STOP, LEFT, RIGHT)ITouchSensor createTouchSensor(ESensorPort port)
port
- Port, that the sensor is connected toISensor createUltrasonicSensor(ESensorPort port)
port
- Port, that the sensor is connected to