|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.entity.BudgetValue
nars.entity.Item
public abstract class Item
An item is an object that can be put into a Bag, to participate in the resource competation of the system.
It has a key and a budget.
| Field Summary | |
|---|---|
protected java.lang.String |
key
The key of the Item, unique in a Bag |
| Fields inherited from class nars.entity.BudgetValue |
|---|
durability, priority, quality |
| Constructor Summary | |
|---|---|
protected |
Item()
Default constructor |
protected |
Item(BudgetValue v)
Constructor with initial budget |
| Method Summary | |
|---|---|
BudgetValue |
getBudget()
Get current BudgetValue |
java.lang.String |
getKey()
Get the current key |
| Methods inherited from class nars.entity.BudgetValue |
|---|
aboveThreshold, clone, decDurability, decPriority, decQuality, getDurability, getPriority, getQuality, incDurability, incPriority, incQuality, merge, setDurability, setPriority, setQuality, summary, toString, toString2 |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String key
| Constructor Detail |
|---|
protected Item()
protected Item(BudgetValue v)
v - The initial budget| Method Detail |
|---|
public java.lang.String getKey()
public BudgetValue getBudget()
This method is redundant, just to make the code more readable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||