After considering other alternatives I think that this is the best choice. We are going to follow a very simple approach. We will begin by creating an ASCII file containing the values of a sin wave. This file is similar to a sampled signal stored in an ASCII file. Then we will create an EDF+ file based on these data. The whole process is similar to the process followed when we create an EDF+ file from real data obtained with a device able to export ASCII files.
We assume that you have downloaded and installed Java and that you are able to edit and compile a simple program. You will find an excellent set of tutorials in the Java SUN site.
These notes are not designed to teach you programming (I am not a programmer myself) but to show some very basic mechanisms in practice.