|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.constraints.std_constraint
Base class for objects that represent standard lightweight constraints. Here we store the integer encoding as well as the orientation of the constraint and a reference to the constraint_impl object that understands the encoding.
Field Summary | |
protected int |
_encoding
Encoding of constraint as an integer. |
protected constraint_impl |
_impl
The implementation object for this constraint. |
protected int |
_orientation
Orientation of the constraint. |
Constructor Summary | |
std_constraint(int encode_val,
constraint_impl imp,
int orient)
Full constructor. |
|
std_constraint(int encode_val,
int orient)
Constructor defaulting to the standard constraint implementation. |
Method Summary | |
int |
encoding()
Encoding of constraint as an integer. |
constraint_impl |
impl()
The implementation object for this constraint. |
boolean |
is_external()
Indicate if this constraint is encoding for an external constraint. |
boolean |
is_none()
Indicate if this constraint is actually encoding for no constraint. |
int |
orientation()
Orientation of the constraint. |
java.lang.String |
tag()
Create a terse human readable string describing the constraint. |
java.lang.String |
toString()
Create a human readable string describing the constraint. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int _encoding
protected constraint_impl _impl
protected int _orientation
Constructor Detail |
public std_constraint(int encode_val, constraint_impl imp, int orient)
int
- encode_val the encoding for this constraint.constraint_impl
- imp the implementation object that
understands the encoding above.int
- orient the orientation of the constraint (one
or more bits from
std_encoding_consts.HORIZONTAL,
std_encoding_consts.VERTICAL, and/or
std_encoding_consts.NOT_ORIENTED).public std_constraint(int encode_val, int orient)
int
- encode_val the encoding for this constraint.int
- orient the orientation of the constraint (one
or more bits from
std_encoding_consts.HORIZONTAL,
std_encoding_consts.VERTICAL, and/or
std_encoding_consts.NOT_ORIENTED).Method Detail |
public int encoding()
public constraint_impl impl()
public int orientation()
public java.lang.String toString()
public java.lang.String tag()
public boolean is_none()
public boolean is_external()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |