public class IlvSimpleResource extends IlvAbstractResource
IlvSimpleResource
is a relatively simple, memory-based
implementation of the IlvResource
interface that can be
extended in a straightforward manner for more complex needs.
IlvSimpleResource
does not provide any connection to a
persistent datastore itself.Constructor and Description |
---|
IlvSimpleResource(String id,
String name)
Creates a new
IlvSimpleResource from the specified ID and
name. |
IlvSimpleResource(String id,
String name,
float quantity)
Creates a new
IlvSimpleResource from the specified ID,
name, and quantity. |
Modifier and Type | Method and Description |
---|---|
String |
getID()
Returns this resource's ID string.
|
String |
getName()
Returns the name of the resource.
|
float |
getQuantity()
Returns this resource's quantity.
|
void |
setID(String id)
Sets this resource's ID string.
|
void |
setName(String name)
Sets the name of the resource.
|
void |
setQuantity(float quantity)
Sets this resource's quantity.
|
fireEvent, fireIDAboutToChange, fireIDChanged, fireNameAboutToChange, fireNameChanged, fireQuantityAboutToChange, fireQuantityChanged, getChildEventFilter, getGanttModel, paramString, processChildEvent, setGanttModelImpl, toString
public IlvSimpleResource(String id, String name, float quantity)
IlvSimpleResource
from the specified ID,
name, and quantity.public String getID()
public void setID(String id)
id
- The resource's ID string.public String getName()
public void setName(String name)
name
- A descriptive name for this resource.public float getQuantity()
public void setQuantity(float quantity)
quantity
- The amount of this resource.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.