This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
M2IHMPalette/Geste/src/ivyTranslater.java

30 lines
722 B
Java

import fr.dgac.ivy.Ivy;
import fr.dgac.ivy.IvyClient;
import fr.dgac.ivy.IvyException;
import fr.dgac.ivy.IvyMessageListener;
class ivyTranslater implements IvyMessageListener {
private final Ivy bus;
private String argument;
ivyTranslater() throws IvyException {
// initialization, name and ready message
bus = new Ivy("IvyTranslater", "Geste", null);
bus.start("127.255.255.255:2010"); // starts the bus on the default domain
}
void sendMsg(String msg) {
try {
bus.sendMsg(msg);
} catch (IvyException e) {
e.printStackTrace();
}
}
@Override
public void receive(IvyClient ivyClient, String[] strings) {
}
}