public class Resource extends ModelComponent
outOfOrder
if it is broken down.Constructor and Description |
---|
Resource(Model ownerModel,
java.lang.String name,
Res resPool,
boolean showInTrace)
Constructs a resource object with the given String as name and the given
model as the associated owner of this component.
|
Modifier and Type | Method and Description |
---|---|
long |
getidNumber()
Returns the ID number of this resource object.
|
Res |
getResPool()
Returns the resource pool (Res) this resource belongs to.
|
boolean |
isOutOfOrder()
Is this resource out of order at the moment and therefore can not be
used?
|
void |
setOutOfOrder(boolean brokenDown)
This resource can be set to out of order (
true ) if it is
broken down and can not be used at the moment. |
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public Resource(Model ownerModel, java.lang.String name, Res resPool, boolean showInTrace)
false
.ownerModel
- Model : The model this resource is associated to.name
- java.lang.String : The name of the resource.resPool
- Res : The resource pool this resource belongs to.showInTrace
- boolean : Flag for showing this resource in trace files. Set
it to true
if resource should show up in trace.
Set it to false
if resource should not be shown
in trace.public long getidNumber()
public Res getResPool()
public boolean isOutOfOrder()
public void setOutOfOrder(boolean brokenDown)
true
) if it is
broken down and can not be used at the moment.brokenDown
- boolean : Flag for showing if this resource is out of order
and therefore is not available at the moment. Set it to
true
if the resource is broken down. Set it to
false
if the resource is ready to use.