|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.ObjectdecisionMakingSystem.PerceptiveField
public class PerceptiveField
Perceptive field is taking care about the actions and their link with items (satisfaction of affordances) therefore it contains link to ThingManager and structures to hold currently perceived items and actions, which are active and compete to be executed
| Field Summary | |
|---|---|
ThingsManager |
allThings
structure which gathers all currently visible items and handles messages from GB e.g. |
DecisionModuleImpl |
dModule
necessary for accessing memory |
Logger |
log
global log to log anything into:) |
ArrayList<EItem> |
memoryItems
items which were obtained by the cue posed on memory |
ArrayList<EItem> |
perceivedItems
perceived items - those who made it through the attention filter |
ArrayList<Action> |
processArea
processes which are active and about to be executed |
double |
stress
actual value of stress - dependent on how much pressure is there on agent (how many actions to do) |
| Constructor Summary | |
|---|---|
PerceptiveField(Logger log,
ThingsManager things,
DecisionModuleImpl dModule)
|
|
| Method Summary | |
|---|---|
void |
addAction(Action action)
Adds action to the processArea, disable grandfather if there |
void |
addSource(EItem item)
it adds new item to the perceptive field if it can fits in - adds to memory - seeing item increases if it is already there |
Action |
chooseAction(int time)
choose action from process field - so it is not the same as choosing action in the decision module |
void |
clearProcessArea()
|
Action |
findMaxActivity()
|
EItem |
getPerceivedItemOfAffordance(AffordanceType affType)
returns item of provided affordance, if it perceives any |
void |
increaseAttractivityToAllSources(Action action)
increases attractivity to all visible (NOT only percieved) sources of the action |
boolean |
isAffordanceSatisfied(AffordanceType affordance,
Action action)
checks if the affordance is satisfied by something |
boolean |
isThingAssignedToAction(EItem item,
Action action)
checks if the item is assigned to action |
String |
printPerceivedItems()
|
void |
removeAction(Action action)
removes action from preactive actions, plus if it has some items, decreases their attractivities |
void |
removeActionsOfIntention(Intention temp)
removes actions of the intention and call recursion, so it should erase whole tree when it comes to it |
void |
removeSource()
removes source with no assigned action or with assigned action of minimal activity |
void |
removeSource(EItem item)
safely remove source from perceivedItems so it removes itself from affordances |
void |
satisfyAffordance(Action action,
AffordanceType af,
EItem item)
|
void |
updateActivities(int time)
updates activities of enabled preactive actions - actions in process area |
void |
updateAttractivity()
update attractivity of all items in the perceptive field |
void |
updateFadeout()
updates values of fadeout in all items - if the item is not perceived, it fades out of agent perception -> removed from perceivedItems same thing for processes - if process doesn't have activity big enough to get to execution, its fading out |
void |
updateStress()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final ArrayList<Action> processArea
public ArrayList<EItem> memoryItems
public final ArrayList<EItem> perceivedItems
public ThingsManager allThings
public Logger log
public double stress
public DecisionModuleImpl dModule
| Constructor Detail |
|---|
public PerceptiveField(Logger log,
ThingsManager things,
DecisionModuleImpl dModule)
| Method Detail |
|---|
public void addAction(Action action)
action -
public boolean isThingAssignedToAction(EItem item,
Action action)
item - action -
public boolean isAffordanceSatisfied(AffordanceType affordance,
Action action)
affordance - action -
public Action chooseAction(int time)
public void addSource(EItem item)
item - public void removeSource(EItem item)
item - public void removeSource()
public Action findMaxActivity()
public void updateActivities(int time)
time - public void updateFadeout()
public void removeActionsOfIntention(Intention temp)
temp - public EItem getPerceivedItemOfAffordance(AffordanceType affType)
affType -
public void clearProcessArea()
public void removeAction(Action action)
action - public void updateAttractivity()
public void increaseAttractivityToAllSources(Action action)
action - public void updateStress()
public String printPerceivedItems()
public void satisfyAffordance(Action action,
AffordanceType af,
EItem item)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||