|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.person.ai.PersonalityType
public class PersonalityType
The MBTI (Myers-Briggs Type Indicator) personality type for the person.
Method Summary | |
---|---|
int |
getPersonalityDifference(java.lang.String otherPersonality)
Get the numerical difference between two personality types (0 - 4) |
java.lang.String |
getTypeString()
Gets the personality type as a four letter code. |
boolean |
isExtrovert()
Checks if the personality is extrovert. |
boolean |
isFeeler()
Checks if the personality is feeler. |
boolean |
isIntrovert()
Checks if the personality is introvert. |
boolean |
isIntuitive()
Checks if the personality is intuitive. |
boolean |
isJudger()
Checks if the personality is judger. |
boolean |
isPerceiver()
Checks if the personality is perceiver. |
boolean |
isSensor()
Checks if the personality is sensor. |
boolean |
isThinker()
Checks if the personality is thinker. |
void |
setTypeString(java.lang.String newPersonalityType)
Sets the personality type |
java.lang.String |
toString()
Get this object as a string. |
void |
updateStress(double time)
Updates a person's stress based on his/her personality. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getTypeString()
public void setTypeString(java.lang.String newPersonalityType)
newPersonalityType
- for letter MBTI code.public java.lang.String toString()
toString
in class java.lang.Object
public int getPersonalityDifference(java.lang.String otherPersonality)
otherPersonality
- the other MBTI personality to check.
public boolean isIntrovert()
public boolean isExtrovert()
public boolean isSensor()
public boolean isIntuitive()
public boolean isThinker()
public boolean isFeeler()
public boolean isJudger()
public boolean isPerceiver()
public void updateStress(double time) throws java.lang.Exception
time
- the time passing (millisols)
java.lang.Exception
- if problem updating stress.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |