public abstract class AbstractSimulatedResourceContainer extends Object
Constructor and Description |
---|
AbstractSimulatedResourceContainer(SimuComModel myModel,
String myContainerID) |
Modifier and Type | Method and Description |
---|---|
Collection<AbstractScheduledResource> |
getActiveResources()
Retrieves all active resources in this resource container.
|
HashMap<String,AbstractScheduledResource> |
getAllActiveResources()
Retrieves the HashMap with all all active resources in this resource container.
|
List<AbstractScheduledResource> |
getFailedResources()
Retrieves all active resources in this resource container which are currently unavailable.
|
String |
getResourceContainerID() |
void |
loadActiveResource(SimuComSimProcess requestingProcess,
String typeID,
double demand)
Demand processing of a resource demand by a given type of active resources In future versions
this has to control schedulers of resource types which exist in multiple instances
|
void |
loadActiveResource(SimuComSimProcess requestingProcess,
String providedInterfaceID,
int resourceServiceID,
double demand)
Demand processing of a resource demand by a given type of active resource and a resource
interface operation
|
void |
loadActiveResource(SimuComSimProcess requestingProcess,
String providedInterfaceID,
int resourceServiceID,
Map<String,Serializable> parameterMap,
double demand)
Demand processing of a resource demand by a given type of active resource and a resource
interface operation and additional parameters which can be used in an active resource
|
public AbstractSimulatedResourceContainer(SimuComModel myModel, String myContainerID)
public void loadActiveResource(SimuComSimProcess requestingProcess, String typeID, double demand)
requestingProcess
- The thread requesting the processing of a resource demandtypeID
- ID of the resource type to which the demand is directed. Same as the PCM resource
type IDsdemand
- The demand in units processable by the resource. The resource is responsible
itself for converting this demand into time spanspublic void loadActiveResource(SimuComSimProcess requestingProcess, String providedInterfaceID, int resourceServiceID, double demand)
requestingProcess
- The thread requesting the processing of a resource demandtypeID
- ID of the resource provided interface to which the demand is directed.resourceServiceID
- the id of the resource service to be called.demand
- The demand in units processable by the resource. The resource is responsible
itself for converting this demand into time spanspublic void loadActiveResource(SimuComSimProcess requestingProcess, String providedInterfaceID, int resourceServiceID, Map<String,Serializable> parameterMap, double demand)
requestingProcess
- The thread requesting the processing of a resource demandprovidedInterfaceID
- ID of the resource provided interface to which the demand is directed.resourceServiceID
- the id of the resource service to be called.parameterMap
- Additional Parameters usable in an active resource. Parameters represented as
demand
- The demand in units processable by the resource. The resource is responsible
itself for converting this demand into time spanspublic Collection<AbstractScheduledResource> getActiveResources()
public HashMap<String,AbstractScheduledResource> getAllActiveResources()
public List<AbstractScheduledResource> getFailedResources()
public String getResourceContainerID()