An all-optical device for wavelength conversion, reshaping, modulating,
and regenerating. The device includes a splitting device having first,
second, third, and fourth terminals and a nonlinear element. The third
and fourth terminals are associated with an optical loop including the
nonlinear element when the nonlinear element is displaced from the
mid-point of the optical loop. The splitting device is arranged to
receive a modulated signal from one of the first and second terminals and
a continuous beam from one of the first and second terminals to generate
a patterned signal based on the continuous beam at one of the first and
second terminals when the pattern of the patterned signal is inverted
with respect to the pattern of the modulated signal.