|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AHA.UserModel
UserModel represents the user model and maintains a permanent version in the user's user model file and logfile.
Constructor Summary | |
UserModel()
The default constructor is forbidden. |
|
UserModel(AHA AHA)
This is the "short" constructor, with one parameter: the AHA context. |
|
UserModel(AHA AHA,
java.lang.String ModelName)
|
Method Summary | |
java.awt.Color |
getActiveLinkColor()
Return the color for active links (being clicked on). |
java.awt.Color |
getBadLinkColor()
Return the color for undesired links. |
java.awt.Color |
getColor(java.lang.String color)
|
java.lang.String |
getDepartment()
Return the user's department. |
java.lang.String |
getEmail()
Return the user's email address. |
java.awt.Color |
getExternalLinkColor()
Return the color for external unvisited links. |
java.awt.Color |
getExternalVisitedColor()
Return the color for external visited links. |
java.awt.Color |
getGoodLinkColor()
Return the color for desired links. |
java.lang.String |
getId()
Return the user's id. |
java.lang.String |
getInstitute()
Return the user's institute. |
java.util.Hashtable |
getKnowledge()
Return the internal representation of the user's knowledge. |
java.util.Vector |
getLogFileLines()
Return the lines of the user's log file as a vector. |
java.lang.String |
getName()
Return the user's name. |
int |
getNbBadVisited()
|
int |
getNbGoodVisited()
|
int |
getNbNotVisited()
|
int |
getNbPages()
Return the number of pages to read. |
int |
getNbRead()
Return the number of read pages. |
java.awt.Color |
getNeutralLinkColor()
Return the color for uninteresting (previously visited) links. |
java.lang.String |
getPasswd()
Return the user's password. |
java.util.Hashtable |
getVisitedList()
Return the internal representation of the pages with their visited status |
boolean |
hasBadVisit(java.lang.String name)
|
boolean |
hasGoodVisit(java.lang.String name)
|
boolean |
hasNotVisit(java.lang.String name)
|
org.w3c.dom.Element |
makeEl(com.sun.xml.tree.XmlDocument d,
java.lang.String name,
java.lang.String value)
|
void |
print(java.lang.Object s)
|
java.lang.String |
printActiveLinkColor()
Return the hexadecimal representation of the color for active links (being clicked on). |
java.lang.String |
printBadLinkColor()
Return the hexadecimal representation of the color for undesired links. |
static java.lang.String |
printColor(java.awt.Color c)
Return a String representation of a Color. |
java.lang.String |
printExternalLinkColor()
Return the hexadecimal representation of the color for external unvisited links. |
java.lang.String |
printExternalVisitedColor()
Return the hexadecimal representation of the color for external visited links. |
java.lang.String |
printGoodLinkColor()
Return the hexadecimal representation of the color for desired links. |
void |
println(java.lang.Object s)
|
java.lang.String |
printNeutralLinkColor()
Return the hexadecimal representation of the color for uninteresting (previously visited) links. |
void |
recount()
|
void |
saveUserModel(java.lang.String ModelName)
This method rewrites the User Model file and appends to the log file. |
void |
setActiveLinkColor(java.awt.Color c)
Set the color for active links (being clicked on). |
void |
setBadLinkColor(java.awt.Color c)
Set the color for undesired links. |
void |
setDepartment(java.lang.String s)
Set the user's department. |
void |
setEmail(java.lang.String s)
Set the user's email address. |
void |
setExternalLinkColor(java.awt.Color c)
Set the color for external unvisited links. |
void |
setExternalVisitedColor(java.awt.Color c)
Set the color for external visited links. |
void |
setGoodLinkColor(java.awt.Color c)
Set the color for desired links. |
void |
setId(java.lang.String s)
Set the user's id. |
void |
setInstitute(java.lang.String s)
Set the user's institute. |
void |
setKnowledge(java.util.Hashtable t)
Replace the user's knowledge by the argument of the method call. |
void |
setLogFileLines(java.util.Vector v)
Replace the user's vector representation of the log file by the argument of the method call. |
void |
setName(java.lang.String s)
Set the user's name. |
void |
setNbPages(int n)
Set the number of pages to read. |
void |
setNbRead(int n)
Set the number of read pages. |
void |
setNeutralLinkColor(java.awt.Color c)
Set the color for uninteresting (previously visited) links. |
void |
setPasswd(java.lang.String s)
Set the user's password. |
void |
setVisitedList(java.util.Hashtable hs)
Replace the user's pages with visited status |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public UserModel() throws AhaException
public UserModel(AHA AHA)
public UserModel(AHA AHA, java.lang.String ModelName) throws AhaException
Method Detail |
public java.lang.String toString()
public void print(java.lang.Object s)
public void println(java.lang.Object s)
public java.awt.Color getColor(java.lang.String color)
public org.w3c.dom.Element makeEl(com.sun.xml.tree.XmlDocument d, java.lang.String name, java.lang.String value)
public void saveUserModel(java.lang.String ModelName) throws AhaException
public java.util.Hashtable getKnowledge()
public void setKnowledge(java.util.Hashtable t)
public java.util.Hashtable getVisitedList()
public void setVisitedList(java.util.Hashtable hs)
public java.util.Vector getLogFileLines()
public void setLogFileLines(java.util.Vector v)
public static java.lang.String printColor(java.awt.Color c)
public java.awt.Color getGoodLinkColor()
public java.lang.String printGoodLinkColor()
public void setGoodLinkColor(java.awt.Color c)
public java.awt.Color getBadLinkColor()
public java.lang.String printBadLinkColor()
public void setBadLinkColor(java.awt.Color c)
public java.awt.Color getActiveLinkColor()
public java.lang.String printActiveLinkColor()
public void setActiveLinkColor(java.awt.Color c)
public java.awt.Color getNeutralLinkColor()
public java.lang.String printNeutralLinkColor()
public void setNeutralLinkColor(java.awt.Color c)
public java.awt.Color getExternalLinkColor()
public java.lang.String printExternalLinkColor()
public void setExternalLinkColor(java.awt.Color c)
public java.awt.Color getExternalVisitedColor()
public java.lang.String printExternalVisitedColor()
public void setExternalVisitedColor(java.awt.Color c)
public java.lang.String getName()
public void setName(java.lang.String s)
public java.lang.String getEmail()
public void setEmail(java.lang.String s)
public java.lang.String getId()
public void setId(java.lang.String s)
public java.lang.String getPasswd()
public void setPasswd(java.lang.String s)
public java.lang.String getInstitute()
public void setInstitute(java.lang.String s)
public java.lang.String getDepartment()
public void setDepartment(java.lang.String s)
public int getNbRead()
public void setNbRead(int n)
public int getNbPages()
public void recount()
public void setNbPages(int n)
public int getNbNotVisited()
public int getNbBadVisited()
public int getNbGoodVisited()
public boolean hasNotVisit(java.lang.String name)
public boolean hasBadVisit(java.lang.String name)
public boolean hasGoodVisit(java.lang.String name)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |