
jadex.bdi.examples.hunterprey.HunterPrey.application.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bdi Show documentation
Show all versions of jadex-applications-bdi Show documentation
The Jadex BDI applications package contain
several example applications, benchmarks and
testcases using BDI agents.
The newest version!
jadex.extension.envsupport.environment.*
jadex.extension.envsupport.environment.space2d.*
jadex.extension.envsupport.environment.RoundBasedExecutor
jadex.extension.envsupport.math.*
jadex.bridge.service.clock.IClockService
jadex.extension.envsupport.dataview.*
jadex.bdi.examples.hunterprey.dumbprey.*
jadex.bdi.examples.hunterprey.cleverprey.*
jadex.bdi.examples.hunterprey.dumbhunter.*
jadex.extension.envsupport.observer.perspective.*
jadex.bdi.planlib.*
new Vector2Double
(
Math.min(1, ($object.clock.getTick()-
$object.creation_age.doubleValue())/32.0),
Math.min(0.8, ($object.clock.getTick()-
$object.creation_age.doubleValue())/40.0)
)
5
"food"
jadex.commons.SUtil.createHashMap(
new String[]{Space2D.PROPERTY_POSITION, "creation_age", "clock"},
new Object[]{((Grid2D)$space).getEmptyGridPosition(), new Double($clock.getTick()), $clock})
((Grid2D)$space).getEmptyGridPosition()!=null
$object
2
$object
2
new Vector1Int(2)
new Object[]
{
new String[]{"food_seen", "appeared", "created"},
new String[]{"food_out_of_sight", "disappeared"},
new String[]{"food_eaten", "destroyed"},
new String[]{"prey_moved", "moved"},
new String[]{"prey_seen", "appeared", "created"},
new String[]{"prey_gone", "disappeared", "destroyed"},
new String[]{"hunter_seen", "appeared", "created"},
new String[]{"hunter_gone", "disappeared", "destroyed"},
new String[]{"obstacle_seen", "appeared", "created"},
new String[]{"obstacle_gone", "disappeared", "destroyed"}
}
new Vector1Int(2)
new Object[]
{
new String[]{"food_seen", "add", "seen_food"},
new String[]{"food_seen", "add", "known_food"},
new String[]{"food_eaten", "remove", "seen_food"},
new String[]{"food_eaten", "remove", "known_food"},
new String[]{"food_out_of_sight", "remove", "seen_food"},
new String[]{"hunter_seen", "add", "seen_hunters"},
new String[]{"hunter_gone", "remove", "seen_hunters"},
new String[]{"prey_moved", "remove_outdated", "known_food"}
}
new Object[]
{
new String[]{"food_seen", "set", "nearest_food", "isNearer"},
new String[]{"food_eaten", "unset", "nearest_food", "isFact"},
new String[]{"food_out_of_sight", "unset", "nearest_food", "isFact"}
}
$fact==null
|| $space.getDistance((IVector2)$avatar.getProperty(Space2D.PROPERTY_POSITION),
(IVector2)((ISpaceObject)$fact).getProperty(Space2D.PROPERTY_POSITION))
.greater($space.getDistance((IVector2)$avatar.getProperty(Space2D.PROPERTY_POSITION),
(IVector2)((ISpaceObject)$percept).getProperty(Space2D.PROPERTY_POSITION)))
$percept.equals($fact)
new Object[]
{
new String[]{"prey_seen", "set", "nearest_prey", "isNearer"},
new String[]{"prey_moved", "set", "nearest_prey", "isNearer"},
new String[]{"prey_gone", "unset", "nearest_prey", "isFact"}
}
$fact==null
|| $space.getDistance((IVector2)$avatar.getProperty(Space2D.PROPERTY_POSITION),
(IVector2)((ISpaceObject)$fact).getProperty(Space2D.PROPERTY_POSITION))
.greater($space.getDistance((IVector2)$avatar.getProperty(Space2D.PROPERTY_POSITION),
(IVector2)((ISpaceObject)$percept).getProperty(Space2D.PROPERTY_POSITION)))
$percept.equals($fact)
new Object[]
{
new String[]{"prey_seen", "add", "vision"},
new String[]{"prey_gone", "remove", "vision"},
new String[]{"obstacle_seen", "add", "vision"},
new String[]{"obstacle_gone", "remove", "vision"}
}
$space
new CreatureActionComparator($space)
"lastaction"
5
5
5
1
10
© 2015 - 2025 Weber Informatics LLC | Privacy Policy