Package spade :: Module Organization :: Class Organization
[hide private]
[frames] | no frames]

Class Organization

source code


Nested Classes [hide private]
  TestRoomNameBehaviour
  CreateRoomBehaviour
  CreateTeamBehaviour
  MyJoinRoomBehaviour
  GetRegistrationFormBehaviour
  SendRegistrationFormBehaviour
  GetUnitListBehaviour
  GetUnitInfoBehaviour
  DestroyBehaviour
  IsMemberBehaviour

Inherited from Unit.Unit: AddAdminBehaviour, AddBanAgentBehaviour, AddModeratorBehaviour, AddOwnerBehaviour, GetAdminListBehaviour, GetBanAgentListBehaviour, GetGoalBehaviour, GetInfoBehaviour, GetMaxAgentsBehaviour, GetMemberListBehaviour, GetMinAgentsBehaviour, GetModeratorListBehaviour, GetNumberOfAgentsBehaviour, GetOwnerListBehaviour, GiveVoiceBehaviour, KickAgentBehaviour, PresenceBehaviour, RemoveAdminBehaviour, RemoveBanAgentBehaviour, RemoveModeratorBehaviour, RemoveOwnerBehaviour, RevokeVoiceBehaviour, SendMessageBehaviour, SendPrivateMessageBehaviour, SetGoalBehaviour, SetMaxAgentsBehaviour, SetMinAgentsBehaviour

Instance Methods [hide private]
 
__init__(self, agent, nick, name, type=None, goalList=None, agentList=[], contentLanguage='sl', create=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
setup(self) source code
 
myCreate(self) source code
 
myJoin(self) source code
 
testRoomName(self) source code
 
testOrganizationName(self) source code
 
createRoom(self) source code
 
createTeam(self) source code
 
checkGoal(self, goalList) source code
 
checkType(self) source code
 
invite(self, agentList) source code
 
myJoinRoom(self) source code
 
getRegistrationForm(self, unitName)
Returns a dataform with all requested information for joining
source code
 
sendRegistrationForm(self, unitName, dataForm)
Sends a dataform for a specific unit.
source code
 
getUnitList(self)
Returns a dataform with all requested information for joining
source code
 
getUnitInfo(self, unitname) source code
 
leave(self)
Agent leaves and it is removed from the member list
source code
 
destroy(self)
Organization owner destroys the organization
source code
 
joinUnit(self, unit) source code
 
checkIsMember(self, unit) source code
 
addUnit(self, unit)
Creates a new unit inside an organization
source code
 
checkTypes(self, orgType, unitType) source code
 
checkOwner(self, agentJID) source code
 
getSupervisorList(self) source code
 
sendMessage(self, message) source code
 
sendPrivateMessage(self, recName, message) source code
 
giveVoice(self, nickname) source code
 
revokeVoice(self, nickname) source code
 
_process(self)
main loop must be overridden
source code

Inherited from Unit.Unit: addAdmin, addBanAgent, addModerator, addOwner, checkSupervisor, getAdminList, getBanAgentList, getGoal, getInfo, getMaxAgents, getMemberList, getMinAgents, getModeratorList, getNumberOfAgents, getOwnerList, kickAgent, removeAdmin, removeBanAgent, removeModerator, removeOwner, run, setGoal, setMaxAgents, setMinAgents, setRegistrationForm, testUnitName

Inherited from Behaviour.OneShotBehaviour: done

Inherited from Behaviour.Behaviour: exitCode, getAgent, getParent, kill, managePresence, onEnd, onStart, registerPresenceHandler, root, setAgent, setParent, setTemplate

Inherited from MessageReceiver.MessageReceiver: postMessage

Inherited from MessageReceiver.MessageReceiver (private): _receive

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, join, setDaemon, setName, start

Inherited from threading.Thread (private): _reset_internal_locks, _set_daemon, _set_ident

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from Behaviour.Behaviour (private): _exitcode

Properties [hide private]

Inherited from threading.Thread: daemon, ident, name

Inherited from threading.Thread (private): _block

Inherited from object: __class__

Method Details [hide private]

__init__(self, agent, nick, name, type=None, goalList=None, agentList=[], contentLanguage='sl', create=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

setup(self)

source code 
Overrides: Unit.Unit.setup

myCreate(self)

source code 
Overrides: Unit.Unit.myCreate

myJoin(self)

source code 
Overrides: Unit.Unit.myJoin

testRoomName(self)

source code 
Overrides: Unit.Unit.testRoomName

createRoom(self)

source code 
Overrides: Unit.Unit.createRoom

checkGoal(self, goalList)

source code 
Overrides: Unit.Unit.checkGoal

checkType(self)

source code 
Overrides: Unit.Unit.checkType

invite(self, agentList)

source code 
Overrides: Unit.Unit.invite

myJoinRoom(self)

source code 
Overrides: Unit.Unit.myJoinRoom

sendRegistrationForm(self, unitName, dataForm)

source code 

Sends a dataform for a specific unit. If valid, agent is registered and allowed to join

leave(self)

source code 

Agent leaves and it is removed from the member list

Overrides: Unit.Unit.leave

destroy(self)

source code 

Organization owner destroys the organization

Overrides: Unit.Unit.destroy

addUnit(self, unit)

source code 

Creates a new unit inside an organization

Overrides: Unit.Unit.addUnit

checkTypes(self, orgType, unitType)

source code 
Overrides: Unit.Unit.checkTypes

getSupervisorList(self)

source code 
Overrides: Unit.Unit.getSupervisorList

sendMessage(self, message)

source code 
Overrides: Unit.Unit.sendMessage

sendPrivateMessage(self, recName, message)

source code 
Overrides: Unit.Unit.sendPrivateMessage

giveVoice(self, nickname)

source code 
Overrides: Unit.Unit.giveVoice

revokeVoice(self, nickname)

source code 
Overrides: Unit.Unit.revokeVoice

_process(self)

source code 

main loop must be overridden

Overrides: Behaviour.Behaviour._process
(inherited documentation)