@@ -0,0 +1,1274 @@
+package com.bluesky.visualprogramming.remote.path;%0D%0A%0D%0Aimport com.bluesky.visualprogramming.core.Message;%0D%0Aimport com.bluesky.visualprogramming.core.ObjectRepository;%0D%0Aimport com.bluesky.visualprogramming.core._Object;%0D%0Aimport com.bluesky.visualprogramming.remote.ProtocolService;%0D%0Aimport com.bluesky.visualprogramming.remote.ProtocolType;%0D%0Aimport com.bluesky.visualprogramming.vm.VirtualMachine;%0D%0A%0D%0Apublic class PathService implements ProtocolService %7B%0D%0A%09private ProtocolType%5B%5D supportedTypes = new ProtocolType%5B%5D %7B ProtocolType.PATH %7D;%0D%0A%0D%0A%09private ObjectRepository repo;%0D%0A%0D%0A%09ObjectRepository getRepo() %7B%0D%0A%09%09if (repo == null)%0D%0A%09%09%09repo = VirtualMachine.getInstance().getObjectRepository();%0D%0A%0D%0A%09%09return repo;%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public void register(ProtocolType protocol, String address, _Object obj,%0D%0A%09%09%09String connectionOptions) %7B%0D%0A%09%09// intend to do nothing%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public _Object getLocalObject(String address) %7B%0D%0A%09%09return getRepo().getObjectByPath(address);%0D%0A%09%7D%0D%0A%0D%0A%09public String getAddress(_Object obj) %7B%0D%0A%09%09return obj.getPath();%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public void send(String receiverAddress, Message message) %7B%0D%0A%09%09throw new RuntimeException(%22not supported%22);%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public ProtocolType%5B%5D getSupportedTypes() %7B%0D%0A%0D%0A%09%09return supportedTypes;%0D%0A%09%7D%0D%0A%7D%0D%0A

add path protocol