I have a Synchronizer class. I want it to raise an event every X seconds if
conditions Y & Z are True. Here's what I have already:

public class Synchronizer implements ActionListener
{
timer Synchr; //swing timer

public Synchronizer(int interval)
{
timer Synchr = new timer(interval, this);
}
/**
When the Y & Z set to true, the class will allow timer events to pass.
*/
public void actionPerformed(ActionEvent e)
{
if (Y && Z)
{
raiseEvent();
}
}
/**
I want to raise my own events.
*/
public void raiseEvent()
{
// What goes here?
}
// other methods here... [including some to call raiseEvent()]
boolean Y;
boolean Z;
}

TIA
Kent