diff options
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/ReplicatedOptionalActorInterfaceBase.java')
-rw-r--r-- | runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/ReplicatedOptionalActorInterfaceBase.java | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/ReplicatedOptionalActorInterfaceBase.java b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/ReplicatedOptionalActorInterfaceBase.java index 828a336c8..af2211bcd 100644 --- a/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/ReplicatedOptionalActorInterfaceBase.java +++ b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/ReplicatedOptionalActorInterfaceBase.java @@ -14,7 +14,6 @@ package org.eclipse.etrice.runtime.java.modelbase; import java.util.ArrayList; import java.util.LinkedList; -import java.util.List; import org.eclipse.etrice.runtime.java.messaging.IRTObject; import org.eclipse.etrice.runtime.java.messaging.RTServices; @@ -51,6 +50,7 @@ public class ReplicatedOptionalActorInterfaceBase extends OptionalActorInterface // the factory will set our path2peers map int index = getFreeIndex(); String name = getChildName(index); + logCreation(actorClass, name); ActorClassBase actor = factory.create(this, name); if (actor==null) return -1; @@ -67,7 +67,9 @@ public class ReplicatedOptionalActorInterfaceBase extends OptionalActorInterface * @return */ public boolean destroyOptionalActor(int idx) { - IRTObject child = getChild(getChildName(idx)); + String childName = getChildName(idx); + logDeletion(childName); + IRTObject child = getChild(childName); if (!(child instanceof ActorClassBase)) return false; @@ -87,19 +89,6 @@ public class ReplicatedOptionalActorInterfaceBase extends OptionalActorInterface actors.clear(); } - /* (non-Javadoc) - * @see org.eclipse.etrice.runtime.java.modelbase.OptionalActorInterfaceBase#getPeersForPath(java.lang.String) - */ - @Override - public List<String> getPeersForPath(String path) { -// if (getPath2peers()==null) -// return null; -// -// path = path.substring(getOwnPath().length(), path.lastIndexOf(INDEX_SEP)); -// return getPath2peers().get(path); - return super.getPeersForPath(path); - } - public String getChildName(int idx) { return getName()+INDEX_SEP+idx; } |