public class SimpleGoalEntry extends Object implements GoalController.GoalEntry
Constructor and Description |
---|
SimpleGoalEntry(Goal goal,
int priority) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GoalController.GoalEntry o) |
boolean |
equals(Object obj) |
Behavior |
getBehavior() |
Goal |
getGoal() |
int |
getPriority() |
int |
hashCode() |
public SimpleGoalEntry(Goal goal, int priority)
public int compareTo(GoalController.GoalEntry o)
compareTo
in interface Comparable<GoalController.GoalEntry>
public Behavior getBehavior()
getBehavior
in interface GoalController.GoalEntry
Behavior
held by this entry if it holds one, otherwise nullpublic Goal getGoal()
getGoal
in interface GoalController.GoalEntry
Goal
held by this entrypublic int getPriority()
getPriority
in interface GoalController.GoalEntry
Copyright © 2021. All rights reserved.