Package populus :: Module SocialPuppet :: Class AgentProfile
[frames] | no frames]

Class AgentProfile

This class handle the Agent Profile. At the moment uses just a dictionary for all the features needed

Instance Methods
 
__init__(self, features={})
 
getAllFeatures(self)
 
getFeatureByName(self, featureName)
 
setFeatureValue(self, featureName, featureValue)
 
deleteFeatureValue(self, featureName)
 
hasFeatureValue(self, featureName)
 
compareFeature(self, otherProfile, featureName)
 
isEmpty(self)
Class Variables
  GENDER = 'Gender'
  SAME_GENDER = 'SameGender'
  OPPOSITE_GENDER = 'OppositeGender'
  DEFAULT_DIRECTIONS_STANDING = 'DefaultDirectionsStanding'
  DEFAULT_DIRECTIONS_WALKING = 'DefaultDirectionsWalking'
  EXTROVERT = 'Extrovert'
  maxValue1 = 0.4
  maxValue2 = 0.2
  defaultDirectionsStanding = [[Vec3(0.4, 1, 0), 0], [Vec3(0, 1,...
  defaultDirectionsWalking = [[Vec3(0.2, 1, 0), 2], [Vec3(0, 1, ...
  manProfile = {'DefaultDirectionsStanding': [[Vec3(0.4, 1, 0), ...
  womanProfile = {'DefaultDirectionsStanding': [[Vec3(0.4, 1, 0)...
Class Variable Details

defaultDirectionsStanding

Value:
[[Vec3(0.4, 1, 0), 0],
 [Vec3(0, 1, 0), 4],
 [Vec3(-0.4, 1, 0), 4],
 [Vec3(0.4, 1, -0.4), 0],
 [Vec3(0, 1, -0.4), 1],
 [Vec3(-0.4, 1, -0.4), 0]]

defaultDirectionsWalking

Value:
[[Vec3(0.2, 1, 0), 2],
 [Vec3(0, 1, 0), 40],
 [Vec3(-0.2, 1, 0), 2],
 [Vec3(0.2, 1, -0.2), 8],
 [Vec3(0, 1, -0.2), 40],
 [Vec3(-0.2, 1, -0.2), 8]]

manProfile

Value:
{'DefaultDirectionsStanding': [[Vec3(0.4, 1, 0), 0],
                               [Vec3(0, 1, 0), 4],
                               [Vec3(-0.4, 1, 0), 4],
                               [Vec3(0.4, 1, -0.4), 0],
                               [Vec3(0, 1, -0.4), 1],
                               [Vec3(-0.4, 1, -0.4), 0]],
 'DefaultDirectionsWalking': [[Vec3(0.2, 1, 0), 2],
                              [Vec3(0, 1, 0), 40],
...

womanProfile

Value:
{'DefaultDirectionsStanding': [[Vec3(0.4, 1, 0), 0],
                               [Vec3(0, 1, 0), 4],
                               [Vec3(-0.4, 1, 0), 4],
                               [Vec3(0.4, 1, -0.4), 0],
                               [Vec3(0, 1, -0.4), 1],
                               [Vec3(-0.4, 1, -0.4), 0]],
 'DefaultDirectionsWalking': [[Vec3(0.2, 1, 0), 2],
                              [Vec3(0, 1, 0), 40],
...