public class Bounds extends Object implements Serializable
| Constructor and Description |
|---|
Bounds()
Creates new Bounds
|
Bounds(int low,
int high,
boolean shouldBounce,
Class bbClass,
String bbName,
String bbType)
Creates new Bounds.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBounce()
Getter for property bounce.
|
int |
getDirection(int currentPoint)
Return whether the point between the bounds should go upward or downward.
|
int |
getTargetHighPoint()
Getter for property targetHighPoint.
|
int |
getTargetLowPoint()
Getter for property targetLowPoint.
|
String |
toString()
Return the current instance as a string.
|
static String |
trendToString(int trend)
Return the current trend as a string.
|
public static final int UPWARD
public static final int DOWNWARD
public Bounds()
public Bounds(int low,
int high,
boolean shouldBounce,
Class bbClass,
String bbName,
String bbType)
low - The desired low bound.high - The desired high bound.shouldBounce - True if the point between the bounds should bounce between the low and
high, false if the point between the bounds should stay within the low and high
bounds without necessarily reaching either low or high points.bbClass - The blackboard class to use if bounce is true, or null.bbName - The blackboard name to use if bounce is true, or null.bbType - The blackboard type to use if bounce is true, or null.public int getDirection(int currentPoint)
currentPoint - The current point between the low and high bounds.public String toString()
public static String trendToString(int trend)
public boolean getBounce()
public int getTargetHighPoint()
public int getTargetLowPoint()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.