|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--auc.field.FarmDatabaseObject
|
+--auc.field.Field
A field class represents the field data structure in the database. The field corresponds to a field in the farm.
| Field Summary | |
protected JPDPolygon |
boundaryReference1
The outer boundary of this field. |
protected JPDPolygon |
boundaryReference2
Not documented data from database. |
protected JPDPolygon |
boundaryReference3
Not documented data from database. |
| Constructor Summary | |
Field()
|
|
| Method Summary | |
void |
addExclusionZone(ExclusionZone ez)
Adds the given exclusion zone to the list of exclusion zones and notifies the parent-field if any. |
void |
addSubField(Field subfield)
Adds a field reference to the list of sub-fields. |
float |
calculateArea()
Not documented, not implemented. |
static Field |
createSample()
Creates a test sample field with sub-fields and exclusion zones. |
float |
getArea()
|
JPDPolygon |
getBoundaryReference1()
|
JPDPolygon |
getBoundaryReference2()
|
JPDPolygon |
getBoundaryReference3()
|
java.awt.Rectangle |
getBounds()
|
java.util.Vector |
getExclusionZones()
|
long |
getFieldID()
Not documented, not implemented. |
short |
getFieldType()
|
java.lang.String |
getGeoRef()
|
Group |
getGroup()
|
java.util.Vector |
getObstacles()
Method returns all obstacles met in the field: exclusion zones and field boundary concavities. |
Field |
getParentField()
|
long |
getPartOf()
|
java.lang.String |
getPeriod()
|
java.util.Vector |
getSubFields()
|
Group |
getUnderGroup()
|
boolean |
isCurrent()
|
void |
setArea(float area)
|
void |
setBoundaryReference1(JPDPolygon boundaryreference1)
Sets the first boundary reference. |
void |
setBoundaryReference2(JPDPolygon boundaryreference2)
Sets the second boundary reference. |
void |
setBoundaryReference3(JPDPolygon boundaryreference3)
Sets the third boundary reference. |
void |
setCurrent(boolean current)
|
void |
setExclusionZones(java.util.Vector exclusionZones)
Adds the given exclusion zones to the exclusion zone list. |
void |
setFieldID(long fieldid)
Not documented, not implemented. |
void |
setFieldType(short fieldtype)
|
void |
setGeoRef(java.lang.String georef)
|
void |
setGroup(Group group)
|
protected void |
setParentField(Field field)
Sets the parent-field for this field. |
void |
setPartOf(long partof)
|
void |
setPeriod(java.lang.String period)
|
void |
setSubFields(java.util.Vector subFields)
Sets the sub-fields for this field. |
void |
setUnderGroup(Group undergroup)
|
boolean |
valid(Vector2D p)
Checks whether the given point is valid in the means of field boundary and exclusion zones. |
| Methods inherited from class auc.field.FarmDatabaseObject |
getName, getNote, getObjectID, setName, setNote, setObjectID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected JPDPolygon boundaryReference1
protected JPDPolygon boundaryReference2
protected JPDPolygon boundaryReference3
| Constructor Detail |
public Field()
| Method Detail |
public float calculateArea()
public void setFieldID(long fieldid)
public long getFieldID()
public void setBoundaryReference1(JPDPolygon boundaryreference1)
boundaryReference1public JPDPolygon getBoundaryReference1()
boundaryReference1public void setBoundaryReference2(JPDPolygon boundaryreference2)
boundaryReference2public JPDPolygon getBoundaryReference2()
boundaryReference2public void setBoundaryReference3(JPDPolygon boundaryreference3)
boundaryReference3public JPDPolygon getBoundaryReference3()
boundaryReference3public void setFieldType(short fieldtype)
public short getFieldType()
public void setPartOf(long partof)
public long getPartOf()
public void setGroup(Group group)
public Group getGroup()
public void setUnderGroup(Group undergroup)
public Group getUnderGroup()
public void setCurrent(boolean current)
public boolean isCurrent()
public void setPeriod(java.lang.String period)
public java.lang.String getPeriod()
public void setGeoRef(java.lang.String georef)
public java.lang.String getGeoRef()
public void setArea(float area)
public float getArea()
public void setSubFields(java.util.Vector subFields)
subFields - the list of fields (all must be of Field type).public java.util.Vector getSubFields()
protected void setParentField(Field field)
public Field getParentField()
public void addSubField(Field subfield)
subfield - the reference to the field.public void setExclusionZones(java.util.Vector exclusionZones)
exclusionZones - the list of references to exclusion zones.public java.util.Vector getExclusionZones()
public void addExclusionZone(ExclusionZone ez)
ez - the exclusion zone.public java.util.Vector getObstacles()
public java.awt.Rectangle getBounds()
public boolean valid(Vector2D p)
p - the vector pointing to the given point.public static Field createSample()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||