class Shadow


Public Methods

Shadow(Channel &theChannel, FEM_ObjectBroker &theBroker, ChannelAddress &theAddress)
Shadow(char *program, Channel &theChannel, FEM_ObjectBroker &theBroker, MachineBroker &theMachineBroker, int compDemand, bool startShadow)
virtual ~Shadow()
virtual int sendObject(MovableObject &theObject)
virtual int recvObject(MovableObject &theObject)
virtual int sendMessage(const Message &theMessage)
virtual int recvMessage(Message &theMessage)
virtual int sendMatrix(const Matrix &theMatrix)
virtual int recvMatrix(Matrix &theMatrix)
virtual int sendVector(const Vector &theVector)
virtual int recvVector(Vector &theVector)
virtual int sendID(const ID &theID)
virtual int recvID(ID &theID)
Channel* getChannelPtr(void) const
FEM_ObjectBroker* getObjectBrokerPtr(void) const
ChannelAddress* getActorAddressPtr(void) const

Protected Fields

FEM_ObjectBroker* theBroker
Channel* theChannel

Documentation

Shadow is meant as an abstract class, i.e. no instances of Shadow should exist. A Shadow object is associated with an Actor object which may exist in another process. The Shadow acts like a normal object in the users address space, data and processing that is done by the Shadow may be stored and processed in a remote process, the Actor object resides in this remote address space. The Actor and the Shadow both have a Channel, a communication port. This allows the two to communicate with each other.

Shadow(Channel &theChannel, FEM_ObjectBroker &theBroker, ChannelAddress &theAddress)

FEM_ObjectBroker \&theBroker,

Shadow(char *program, Channel &theChannel, FEM_ObjectBroker &theBroker, MachineBroker &theMachineBroker, int compDemand, bool startShadow)

Channel \&theChannel,

virtual ~Shadow()

Destructor

virtual int sendObject(MovableObject &theObject)

A method which will send the MovableObject theObject to the actor object through the shadows channel. It returns the result of invoking sendObj(0,0,theObject, theBroker, theActorsAddress) on the shadow's associated channel theChannel.

virtual int recvObject(MovableObject &theObject)

A method which will cause the object to read the MovableObject theObject from the channel. It will return the result of invoking recvObj(0,0,theObject, theBroker, theActorsAddress) on the shadows associated channel theChannel.

virtual int sendMessage(const Message &theMessage)

A method which will send the message theMessage to the actor object through the shadows channel. It will return the result of invoking sendMsg(0,0,theMessage, theActorsAddress) on the shadows associated channel theChannel.

virtual int recvMessage(Message &theMessage)

A method which will cause the object to read the message theMessage from the channel. It will return the result of invoking recvMsg(0,0,theMessage, theActorsAddress) on the shadows associated channel theChannel.

virtual int sendMatrix(const Matrix &theMatrix)

A method which will send the Matrix theMatrix to the actor object through the shadows channel. It will return the result of invoking sendMatrix(0,0,theMatrix, theActorsAddress) on the shadows associated channel theChannel.

virtual int recvMatrix(Matrix &theMatrix)

A method which will cause the object to read the Matrix theMatrix from the channel. It will return the result of invoking recvMatrix(0,0,theMatrix, theActorsAddress) on the shadows associated channel theChannel.

virtual int sendVector(const Vector &theVector)

A method which will send the Vector theVector to the actor object through the shadows channel. It will return the result of invoking sendVector(0,0,theVector, theActorsAddress) on the shadows associated channel theChannel.

virtual int recvVector(Vector &theVector)

A method which will cause the object to read the Vector theVector from the channel. It will return the result of invoking recvVector(0,0,theVector, theActorsAddress) on the shadows associated channel theChannel.

virtual int sendID(const ID &theID)

A method which will send the ID theID to the actor object through the shadows channel. It will return the result of invoking sendID(0,0,theID, theActorsAddress) on the shadows associated channel theChannel.

virtual int recvID(ID &theID)

A method which will cause the object to read the ID theID from the channel. It will return the result of invoking recvID(0,0,theID, theActorsAddress) on the shadows associated channel theChannel.

Channel* getChannelPtr(void) const

A method which returns a pointer to the channel currently set

FEM_ObjectBroker* getObjectBrokerPtr(void) const

A method which returns a pointer to the FEM_ObjectBroker passed in the constructor

ChannelAddress* getActorAddressPtr(void) const

A method which returns a pointer to the channel in the actors address space

FEM_ObjectBroker* theBroker

Channel* theChannel


This class has no child classes.

alphabetic index Contents

this page has been generated automatically by a slightly modified version of doc++ for OpenSees

Copyright Contact Us