interagents
Class ObjectWithStatus
java.lang.Object
|
+--interagents.ObjectWithStatus
- public class ObjectWithStatus
- extends java.lang.Object
Field Summary |
objects.EuObject |
o
|
interagents.ObjectStatus |
s
|
Constructor Summary |
ObjectWithStatus(objects.EuObject o,
int segment)
Constructor sets up status with defaults for the passed segment |
ObjectWithStatus(objects.EuObject o,
interagents.ObjectStatus s)
Constructor sets up passed status |
Method Summary |
boolean |
aTarget()
|
double |
confusionDistance(objects.EuObject other)
|
boolean |
constructedTarget()
|
void |
draw(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level)
|
void |
draw(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
boolean drawTargets)
|
void |
draw(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
boolean drawTargets,
boolean selected)
|
void |
drawExcepted(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level)
|
void |
drawSecondary(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
int constructionLevel)
|
void |
drawSelected(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level)
|
void |
drawSymbol(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
int symbol)
|
void |
drawSymbolExcepted(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
int symbol)
|
void |
drawSymbolSelected(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
int symbol)
|
objects.EuObject |
getObject()
|
boolean |
isFull()
|
boolean |
mouseVicinity(fundamentals.mouseVector mouseAt,
fundamentals.mouseInfo info)
|
boolean |
originalTarget()
|
int |
sameAs()
|
void |
setSameAs(int i)
Records the @see EuLab number of an object equal to this one. |
void |
setTarget()
Records the @see EuLab number of an object equal to this one. |
interagents.ObjectWithStatus |
toCircle()
|
interagents.ObjectWithStatus |
toLine()
|
java.lang.String |
toNaturalLanguage(int language)
|
void |
toPs(java.lang.StringBuffer work,
fundamentals.mouseInfo info,
int level)
|
void |
toPsSecondary(java.lang.StringBuffer work,
fundamentals.mouseInfo info,
int level,
int constructionLevel)
|
java.lang.String |
toString()
|
char |
typeName()
|
boolean |
unconstructedTarget()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
o
public objects.EuObject o
s
public interagents.ObjectStatus s
ObjectWithStatus
public ObjectWithStatus(objects.EuObject o,
interagents.ObjectStatus s)
- Constructor sets up passed status
- Parameters:
o
- The mathematical objects
- The object's initial status
ObjectWithStatus
public ObjectWithStatus(objects.EuObject o,
int segment)
- Constructor sets up status with defaults for the passed segment
- Parameters:
o
- The mathematical objectsegment
-
sameAs
public int sameAs()
aTarget
public boolean aTarget()
setSameAs
public void setSameAs(int i)
- Records the @see EuLab number of an object equal to this one.
- Returns:
- i the EuLab index.
setTarget
public void setTarget()
- Records the @see EuLab number of an object equal to this one.
- Returns:
- i the EuLab index.
isFull
public boolean isFull()
- Returns:
- true if object is full
unconstructedTarget
public boolean unconstructedTarget()
- Returns:
- true if this is a target which has not been reconstructed
constructedTarget
public boolean constructedTarget()
- Returns:
- true if this is a target which has been constructed
originalTarget
public boolean originalTarget()
- Returns:
- true if this is originally a target
typeName
public char typeName()
getObject
public objects.EuObject getObject()
draw
public void draw(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
toPs
public void toPs(java.lang.StringBuffer work,
fundamentals.mouseInfo info,
int level)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
toPsSecondary
public void toPsSecondary(java.lang.StringBuffer work,
fundamentals.mouseInfo info,
int level,
int constructionLevel)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
draw
public void draw(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
boolean drawTargets)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
drawSelected
public void drawSelected(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
drawExcepted
public void drawExcepted(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
draw
public void draw(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
boolean drawTargets,
boolean selected)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
drawSymbol
public void drawSymbol(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
int symbol)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
drawSymbolSelected
public void drawSymbolSelected(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
int symbol)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
drawSymbolExcepted
public void drawSymbolExcepted(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
int symbol)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
drawSecondary
public void drawSecondary(java.awt.Graphics g,
fundamentals.mouseInfo info,
int level,
int constructionLevel)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
confusionDistance
public double confusionDistance(objects.EuObject other)
throws InternalException
InternalException
mouseVicinity
public boolean mouseVicinity(fundamentals.mouseVector mouseAt,
fundamentals.mouseInfo info)
throws InternalException,
DesignException,
UserException
InternalException
DesignException
UserException
toLine
public interagents.ObjectWithStatus toLine()
toCircle
public interagents.ObjectWithStatus toCircle()
toNaturalLanguage
public java.lang.String toNaturalLanguage(int language)