Actor Class Reference

#include <Actor.h>

Inheritance diagram for Actor:

ActorSubdomain List of all members.

Public Member Functions

 Actor (Channel &theChannel, FEM_ObjectBroker &theBroker, int numActorMethods=0)
virtual ~Actor ()
virtual int run (void)=0
virtual int addMethod (int tag, int(*fp)())
virtual int getMethod ()
virtual int processMethod (int tag)
virtual int sendObject (MovableObject &theObject, ChannelAddress *theAddress=0)
virtual int recvObject (MovableObject &theObject, ChannelAddress *theAddress=0)
virtual int sendMessage (const Message &theMessage, ChannelAddress *theAddress=0)
virtual int recvMessage (Message &theMessage, ChannelAddress *theAddress=0)
virtual int sendMatrix (const Matrix &theMatrix, ChannelAddress *theAddress=0)
virtual int recvMatrix (Matrix &theMatrix, ChannelAddress *theAddress=0)
virtual int sendVector (const Vector &theVector, ChannelAddress *theAddress=0)
virtual int recvVector (Vector &theVector, ChannelAddress *theAddress=0)
virtual int sendID (const ID &theID, ChannelAddress *theAddress=0)
virtual int recvID (ID &theID, ChannelAddress *theAddress=0)
ChannelgetChannelPtr (void) const
FEM_ObjectBrokergetObjectBrokerPtr (void) const
ChannelAddressgetShadowsAddressPtr (void) const
virtual int barrierCheck (int result)
void setCommitTag (int commitTag)

Protected Attributes

FEM_ObjectBrokertheBroker
ChanneltheChannel

Detailed Description

Definition at line 55 of file Actor.h.


Constructor & Destructor Documentation

Actor::Actor ( Channel theChannel,
FEM_ObjectBroker theBroker,
int  numActorMethods = 0 
)

Actor::~Actor (  )  [virtual]

Definition at line 68 of file Actor.cpp.


Member Function Documentation

virtual int Actor::run ( void   )  [pure virtual]

Implemented in ActorSubdomain.

Referenced by MachineBroker::runActors().

int Actor::addMethod ( int  tag,
int(*)()  fp 
) [virtual]

Definition at line 82 of file Actor.cpp.

References ActorMethod::tag, and ActorMethod::theMethod.

int Actor::getMethod (  )  [virtual]

Definition at line 118 of file Actor.cpp.

References recvMessage().

int Actor::processMethod ( int  tag  )  [virtual]

Definition at line 133 of file Actor.cpp.

References ActorMethod::theMethod.

int Actor::sendObject ( MovableObject theObject,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 151 of file Actor.cpp.

References Channel::sendObj(), and theChannel.

Referenced by ActorSubdomain::run().

int Actor::recvObject ( MovableObject theObject,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 161 of file Actor.cpp.

References Channel::recvObj(), theBroker, and theChannel.

Referenced by ActorSubdomain::run().

int Actor::sendMessage ( const Message theMessage,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 182 of file Actor.cpp.

References Channel::sendMsg(), and theChannel.

int Actor::recvMessage ( Message theMessage,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 173 of file Actor.cpp.

References Channel::recvMsg(), and theChannel.

Referenced by getMethod().

int Actor::sendMatrix ( const Matrix theMatrix,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 193 of file Actor.cpp.

References Channel::sendMatrix(), and theChannel.

Referenced by ActorSubdomain::run().

int Actor::recvMatrix ( Matrix theMatrix,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 202 of file Actor.cpp.

References Channel::recvMatrix(), and theChannel.

Referenced by ActorSubdomain::run().

int Actor::sendVector ( const Vector theVector,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 211 of file Actor.cpp.

References Channel::sendVector(), and theChannel.

Referenced by ActorSubdomain::run().

int Actor::recvVector ( Vector theVector,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 220 of file Actor.cpp.

References Channel::recvVector(), and theChannel.

Referenced by ActorSubdomain::run(), and ActorSubdomain::updateTimeDt().

int Actor::sendID ( const ID theID,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 229 of file Actor.cpp.

References Channel::sendID(), and theChannel.

Referenced by ActorSubdomain::barrierCheck(), and ActorSubdomain::run().

int Actor::recvID ( ID theID,
ChannelAddress theAddress = 0 
) [virtual]

Definition at line 238 of file Actor.cpp.

References Channel::recvID(), and theChannel.

Referenced by ActorSubdomain::barrierCheck(), and ActorSubdomain::run().

Channel * Actor::getChannelPtr ( void   )  const

Definition at line 255 of file Actor.cpp.

References theChannel.

FEM_ObjectBroker * Actor::getObjectBrokerPtr ( void   )  const

Definition at line 261 of file Actor.cpp.

References theBroker.

ChannelAddress * Actor::getShadowsAddressPtr ( void   )  const

Definition at line 269 of file Actor.cpp.

int Actor::barrierCheck ( int  result  )  [virtual]

Reimplemented in ActorSubdomain.

Definition at line 278 of file Actor.cpp.

References Channel::recvID(), Channel::sendID(), and theChannel.

void Actor::setCommitTag ( int  commitTag  ) 

Definition at line 248 of file Actor.cpp.

Referenced by ActorSubdomain::run().


Member Data Documentation

Definition at line 103 of file Actor.h.

Referenced by getObjectBrokerPtr(), recvObject(), and ActorSubdomain::run().


The documentation for this class was generated from the following files:

Generated on Mon Oct 23 15:05:37 2006 for OpenSees by doxygen 1.5.0