|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.job.model.JobDataComponent
com.partnersoft.job.model.Chain
public class Chain
| Constructor Summary | |
|---|---|
Chain()
|
|
| Method Summary | |
|---|---|
void |
addLocation(Location newLoc)
|
void |
addSpan(Span newSpan)
|
java.util.ArrayList |
allSpansFor(Location location)
|
java.util.ArrayList |
allSpansFrom(Location location)
|
java.util.ArrayList |
allSpansTo(Location location)
|
Location |
firstChildOf(Location location)
|
Location |
firstParentOf(Location location)
|
void |
generateID()
Subclass homework. |
Alternative |
getAlternative()
|
Point |
getCentroid()
|
Job |
getJob()
|
java.util.ArrayList |
getLocations()
Gets the value of locations |
java.util.ArrayList |
getSpans()
Gets the value of spans |
Cog |
getState()
Subclasses extend this by calling super.getState() and then adding their own state to the result. |
boolean |
isEmpty()
|
void |
move(double offsetX,
double offsetY)
Moves the entire chain by the given offsets. |
void |
recenter(double newX,
double newY)
|
void |
remove()
Removes this chain from its alternative. |
java.util.ArrayList[] |
remove(Location location)
Removes the location from the chain. |
void |
remove(java.lang.Object whatsit)
|
void |
remove(Span span)
|
void |
setAlternative(Alternative newAlternative)
|
void |
setLocations(java.util.ArrayList argLocations)
Sets the value of locations |
void |
setSpans(java.util.ArrayList argSpans)
Sets the value of spans |
void |
setState(Cog state)
Subclasses should extend this by calling super.setState() and then setting their own state from the input. |
| Methods inherited from class com.partnersoft.job.model.JobDataComponent |
|---|
copy, copyStateFrom, generateGuid, generateStandardIDs, getData, getGuid, getID, getName, getType, setData, setGuid, setID, setName, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Chain()
| Method Detail |
|---|
public void addLocation(Location newLoc)
public void addSpan(Span newSpan)
public java.util.ArrayList allSpansFor(Location location)
public java.util.ArrayList allSpansTo(Location location)
public java.util.ArrayList allSpansFrom(Location location)
public java.util.ArrayList[] remove(Location location)
public void remove(Span span)
public void remove(java.lang.Object whatsit)
public Location firstParentOf(Location location)
public Location firstChildOf(Location location)
public void move(double offsetX,
double offsetY)
public void recenter(double newX,
double newY)
public Job getJob()
public Point getCentroid()
public boolean isEmpty()
public void generateID()
JobDataComponent
generateID in class JobDataComponentpublic void remove()
remove in class JobDataComponentpublic Cog getState()
JobDataComponent
getState in interface CoggablegetState in class JobDataComponentpublic void setState(Cog state)
JobDataComponent
setState in interface CoggablesetState in class JobDataComponentpublic Alternative getAlternative()
public void setAlternative(Alternative newAlternative)
public java.util.ArrayList getLocations()
public void setLocations(java.util.ArrayList argLocations)
argLocations - Value to assign to this.locationspublic java.util.ArrayList getSpans()
public void setSpans(java.util.ArrayList argSpans)
argSpans - Value to assign to this.spans
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||