- public Array<char> *sendDataToLocalDevice(Long deviceId, Array<char> *data) throws InterruptedException {
- System.out.println("Passing Locally");
-
- if (deviceId == t1.getMachineId()) {
- // return t1.localCommInput(data);
- } else if (deviceId == t2.getMachineId()) {
- // return t2.localCommInput(data);
- } else {
- throw new Error("Cannot send to " + deviceId + " using this local comm");
- }
-
- return new char[0];
- }
-}