AMDC - Reference Card
Version 1.2.1.3



Messages Locations Symbols Destiny Scripts Processes

Messages

Creation and deletion

Message   amdc_copyMsg(Message msg)

void      amdc_freeMsg(Message msg)

Message   amdc_newMsg(Script script, Tag tag, int leng)

Message   amdc_rawMsg(int leng)

Access to message header

Destiny   amdc_getDest(Message msg)

int       amdc_getLeng(Message msg)

LocName   amdc_getLocName(Message msg)

Script    amdc_getScript(Message msg)

Tag       amdc_getTag(Message msg)

void      amdc_setDest(Message msg, Destiny dest)

void      amdc_setLocName(Message msg, LocName locName)

void      amdc_setScript(Message msg, Script script)

void      amdc_setTag(Message msg, Tag tag)

Sending messages

void      amdc_sendMsg(Message msg)

void      amdc_sendTo(Message msg, LocName locName)

void      amdc_endToAs(Message msg, LocName locName, Tag tag)

void      amdc_sendToAsDo(Message msg, LocName locName, Tag tag, 

                          Script script)

void      amdc_sendToDest(Message msg, Destiny destiny)

Tables attached to messages

Tag       amdc_firstTagMsg(Message msg, Tag tag)

Message   amdc_getArbMsg(Message msg)

Message   amdc_getMsg(Message msg, Tag tag)

Tag       amdc_nextTagMsg(Message msg, Tag prev)

int       amdc_numMsg(Message msg, Tag tag)

int       amdc_presentMsg(Message msg, Tag tag)

void      amdc_putMsg(Message tbl, Message msg)


Messages Locations Symbols Destiny Scripts Processes

Locations


void      amdc_enqueueAtLoc(Location loc, Message msg)

LocName   amdc_3DLocName(Symbol symbol, unsigned long X0, 

                             unsigned long X1, unsigned long X2)

LocName   amdc_2DLocName(Symbol symbol, unsigned long X0, 

                             unsigned long X1)

LocName   amdc_1DLocName(Symbol symbol, unsigned long X0)

LocName   amdc_0DLocName(Symbol symbol)

Tag       amdc_firstTagLoc(Location loc)

Message   amdc_getArbLoc(Location loc)

Message   amdc_getLoc(Location loc, Tag tag)

LocName   amdc_getNameOfLoc(Location loc)

Tag       amdc_nextTagLoc(Location loc, Tag prev)

int       amdc_numLoc(Location loc, Tag tag)

int       amdc_presentLoc(Location loc, Tag tag)

void      amdc_putLoc(Location loc, Message msg)


Messages Locations Symbols Destiny Scripts Processes

Symbols


Symbol    amdc_newSymbol(int kind)

Symbol macros

Symbol creation

AMDC_AbsoluteSymbol(I, K)

Kinds of symbols

AMDC_SYMB_0       allocate locations at node 0.

AMDC_SYMB_X0      allocate locations at locName.X[0] % numberOfNodes.

AMDC_SYMB_HASH    allocate locations by hashing their names.

AMDC_SYMB_HERE    allocate the location on the node who created the symbol.

Predefined symbols

AMDC_NULL_SYMBOL      AMDC_AbsoluteSymbol(0, AMDC_SYMB_0)

AMDC_PROCESS_CONTROL  AMDC_AbsoluteSymbol(0, AMDC_SYMB_X0. Used to name

                      the locations to which the processes are attached.

AMDC_SymbolNode(S)    tells you the node that created the symbol

AMDC_SymbolKind(S)    tells you the kind of symbol.


Messages Locations Symbols Destiny Scripts Processes

Destiny


Destiny   amdc_getDest(Message msg)

Destiny   amdc_makeDest(LocName locName, Tag tag, Script script)

void      amdc_sendToDest(Message msg, Destiny destiny)

void      amdc_setDest(Message msg, Destiny destiny)


Messages Locations Symbols Destiny Scripts Processes

Scripts


void      amdc_rawScript(Message msg, Location loc)


Messages Locations Symbols Destiny Scripts Processes

Processes


int       amdc_getMyId(void)

Location  amdc_getMyLoc(void)

int       amdc_getNumNodes(void)

void      amdc_pollBlock(void)

void      amdc_pollLocations(void)


Prepared by Virgil Bistriceanu. Last Modified: 11:20 am, November 4, 1996