To use the strike and retract we first must set the actuator to standard actuator mode
actuatorName.setActuatorMode(ARAM_TOGGLE_ACTUATOR_Actuator);
To make the actuator strike we use the strike command
actuatorName.strike();
To make the actuator retract we use the retract command
actuatorName.retract();