XC Open source finite element analysis program
Public Member Functions | Protected Attributes | List of all members
XC::Actor Class Referenceabstract
Inheritance diagram for XC::Actor:
XC::ActorSubdomain

Public Member Functions

 Actor (Channel &theChannel, FEM_ObjectBroker &theBroker, int numActorMethods=0)
 Constructor to init the list.
 
 Actor (const Actor &)
 Copy constructor.
 
Actoroperator= (const Actor &)
 Assignment operator.
 
virtual ~Actor (void)
 Destructor.
 
virtual int run (void)=0
 
virtual int addMethod (int tag, int(*fp)())
 Method to add a function to the list of avaiable actor methods. The function will be identified as tag, it is a function with no args that returns an int.
 
virtual int getMethod ()
 Method to return the integer tag of the next method the actor has been asked to invoke.
 
virtual int processMethod (int tag)
 Method to process the function whose id is tag.
 
virtual int sendObject (MovableObject &theObject, ChannelAddress *theAddress=0)
 Sends object theObject through the channel being passed as parameter.
 
virtual int recvObject (MovableObject &theObject, ChannelAddress *theAddress=0)
 Receives object theObject through the channel being passed as parameter.
 
virtual int sendMessage (const Message &theMessage, ChannelAddress *theAddress=0)
 Envía el mensaje through the channel being passed as parameter.
 
virtual int recvMessage (Message &theMessage, ChannelAddress *theAddress=0)
 Recibe el mensaje through the channel being passed as parameter.
 
virtual int sendMatrix (const Matrix &theMatrix, ChannelAddress *theAddress=0)
 Envía la matriz through the channel being passed as parameter.
 
virtual int recvMatrix (Matrix &theMatrix, ChannelAddress *theAddress=0)
 Recibe la matriz through the channel being passed as parameter.
 
virtual int sendVector (const Vector &theVector, ChannelAddress *theAddress=0)
 Envía el vector through the channel being passed as parameter.
 
virtual int recvVector (Vector &theVector, ChannelAddress *theAddress=0)
 Recibe el vector through the channel being passed as parameter.
 
virtual int sendID (const ID &theID, ChannelAddress *theAddress=0)
 Envía el vector de enteros through the channel being passed as parameter.
 
virtual int recvID (ID &theID, ChannelAddress *theAddress=0)
 Recibe el vector de enteros through the channel being passed as parameter.
 
ChannelgetChannelPtr (void) const
 Returns a pointer to the canal.
 
FEM_ObjectBrokergetObjectBrokerPtr (void) const
 Returns a pointer to the broker.
 
ChannelAddressgetShadowsAddressPtr (void) const
 
virtual int barrierCheck (int result)
 barrier check:
 
void setCommitTag (int commitTag)
 

Protected Attributes

FEM_ObjectBrokertheBroker
 
ChanneltheChannel
 

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