|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--arom.kernel.AromObject | +--arom.kernel.AromEntity
The abstract class AromEntity
is the root class of all the Java objects that
represents AROM objects contained in an AROM knowledge base.
Field Summary | |
protected boolean |
alive
The state of the entity : true if this entity is alive, false otherwise. |
protected Vector |
entityListeners
The listeners of the entity. |
protected AromKb |
kb
The kwnoledge-base the entity belongs to. |
protected String |
name
The name of the entity. |
protected static AromPredicate |
namePredicate
The predicate used to check that the name of the entity is a correct AROM name. |
Fields inherited from class arom.kernel.AromObject |
bundle,
doc,
predicates |
Constructor Summary | |
AromEntity()
|
Method Summary | |
void |
addAromEntityListener(AromEntityListener listener)
Adds an AromEntityListener to this AROM entity. |
void |
delete()
Removes this entity from the knowledge base. |
protected void |
fireAromEntityEvent(AromEntityEvent event)
Send notification to all the entity listeners. |
AromKb |
getKb()
Returns the knowledge base the entity belongs to. |
String |
getName()
Returns the name of the entity. |
protected void |
isAlive()
Tests if this entity is a 'living' entity of the knowledge base. |
void |
removeAromEntityListener(AromEntityListener listener)
Remove the AromEntityListener to the listener list of this entity. |
void |
setDocumentation(String doc)
Sets the documentation of this entity. |
void |
setName(String name)
Sets the name of the entity. |
String |
toString()
Returns a string representation of this entity. |
abstract void |
write(Writer w)
write écrit l'entité à l'aide du PrintWriter passé en paramètre. |
Methods inherited from class arom.kernel.AromObject |
check,
check,
getDocumentation |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected AromKb kb
protected Vector entityListeners
protected boolean alive
protected String name
protected static AromPredicate namePredicate
Constructor Detail |
public AromEntity()
Method Detail |
protected void isAlive() throws AromNullPointerException
An
This test must be performed at the very beginning of each method that modify the
entity.AromNullPointerException is throws if the entity is not alive.
public void setDocumentation(String doc)
doc
- the new documentation.public AromKb getKb()
public String getName()
public void setName(String name) throws AromIllegalIdentifierException, AromAlreadyUsedIdentifierException
structName
- the new name of the entity.public void delete()
AromNullPointerException
.public String toString()
AromEntity
override this method.public abstract void write(Writer w) throws IOException
w
- the stream the entity must be writed in.public void addAromEntityListener(AromEntityListener listener)
listener
- the AromEntityListener to add to the entity listeners.public void removeAromEntityListener(AromEntityListener listener)
listener
- the AromEntityListener to remove to the entity listeners.protected void fireAromEntityEvent(AromEntityEvent event)
event
- the AromEntityEvent describing changes of the entity.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |