Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b2ddff63 authored by Alina Zolotukhina's avatar Alina Zolotukhina
Browse files

BIPComponent interface updated

parent 5f79c124
No related branches found
No related tags found
No related merge requests found
......@@ -56,4 +56,11 @@ public interface BIPComponent extends Identifiable, BIPActor, ResourceManager {
public void provideAllocation(String resourceName, ResourceHandle resourceHandle);
/**
* Provides a map of resource names and their corresponding amounts released by the specified port
* @param port port releasing resources
* @return
*/
public Map<String, String> getReleasedAmounts(Port port);
}
......@@ -5,6 +5,7 @@ import java.util.Map;
import org.bip.api.BIPEngine;
import org.bip.api.OrchestratedExecutor;
import org.bip.api.Port;
import org.bip.api.PortBase;
import org.bip.api.ResourceHandle;
......@@ -128,5 +129,11 @@ public class AkkaOrchestratedExecutorImpl implements AkkaOrchestratedExecutor {
return null;
}
@Override
public Map<String, String> getReleasedAmounts(Port port) {
// TODO Auto-generated method stub
return null;
}
}
......@@ -7,6 +7,7 @@ import java.util.Map;
import org.bip.api.BIPComponent;
import org.bip.api.BIPEngine;
import org.bip.api.Executor;
import org.bip.api.Port;
import org.bip.api.PortBase;
import org.bip.api.Publishable;
import org.bip.api.ResourceHandle;
......@@ -136,4 +137,10 @@ public class ExecutorOSGiImpl implements BundleContextAware, Publishable, Execut
return executor.decreaseCost(amount);
}
@Override
public Map<String, String> getReleasedAmounts(Port port) {
// TODO Auto-generated method stub
return null;
}
}
......@@ -457,4 +457,10 @@ public class ExecutorKernel extends SpecificationParser implements OrchestratedE
//return behaviour.resourceInvoke(this.getClass().getEnclosingMethod().getName(), amount);;
}
@Override
public Map<String, String> getReleasedAmounts(Port port) {
// TODO Auto-generated method stub
return null;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment