Permalink
Browse files

Minor

  • Loading branch information...
1 parent 49fea2f commit 696772a3815ff650ecf09e64bd595636f6b36cb3 @christianbauer christianbauer committed Dec 20, 2016
@@ -112,12 +112,12 @@ public void linkAttributes(Collection<ThingAttribute> attributes) throws Excepti
}
@Override
- public void unlinkAttributes(String entityId) throws Exception {
+ public void unlinkAttributes(String thingId) throws Exception {
synchronized (linkedAttributes) {
Iterator<Map.Entry<AttributeRef, ThingAttribute>> entryIterator = linkedAttributes.entrySet().iterator();
while (entryIterator.hasNext()) {
Map.Entry<AttributeRef, ThingAttribute> entry = entryIterator.next();
- if (entry.getKey().getEntityId().equals(entityId)) {
+ if (entry.getKey().getEntityId().equals(thingId)) {
LOG.fine("Attribute moved on '" + getProtocolName() + "': " + entry.getValue());
onAttributeRemoved(entry.getValue());
entryIterator.remove();
@@ -19,16 +19,13 @@
*/
package org.openremote.agent3.protocol;
-import org.openremote.model.asset.ThingAttribute;
import org.openremote.container.ContainerService;
+import org.openremote.model.asset.ThingAttribute;
import java.util.Collection;
-import java.util.logging.Logger;
public interface Protocol extends ContainerService {
- Logger LOG = Logger.getLogger(Protocol.class.getName());
-
// TODO: Some of these options should be configurable depending on expected load etc.
// Message topic for communicating from thing to protocol layer (thing attribute changed, trigger actuator)
@@ -41,6 +38,6 @@
void linkAttributes(Collection<ThingAttribute> attributes) throws Exception;
- void unlinkAttributes(String entityId) throws Exception;
+ void unlinkAttributes(String thingId) throws Exception;
}

0 comments on commit 696772a

Please sign in to comment.