public abstract class Role extends java.lang.Object implements IRole
Constructor and Description |
---|
Role(java.lang.String name,
RelativeHomePosition relativeHomePosition,
float priority,
double minX,
double maxX) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
float |
getPriority()
Retrieve the priority of the role.
|
Pose2D |
getTargetPosition() |
java.lang.String |
toString() |
void |
update(IGlobalMap worldModel)
Update the internal state of the role.
|
public Role(java.lang.String name, RelativeHomePosition relativeHomePosition, float priority, double minX, double maxX)
name
- name of rolerelativeHomePosition
- the relative home positionpriority
- Our priority of roleminX
- Minimal x-position where this agent movesmaxX
- Maximal x-position where this agent movespositioning
- Indicates the order (in y-direction)public java.lang.String getName()
public float getPriority()
IRole
getPriority
in interface IRole
public void update(IGlobalMap worldModel)
IRole
public Pose2D getTargetPosition()
getTargetPosition
in interface IRole
public java.lang.String toString()
toString
in class java.lang.Object