public class Spawn2PLibrary
extends alice.tuprolog.Library
Constructor and Description |
---|
Spawn2PLibrary() |
Modifier and Type | Method and Description |
---|---|
TucsonIdWrapper<?> |
getSpawnerId()
Both agents and the coordination medium itself can spawn() a computation,
hence we need to handle both.
|
TucsonTupleCentreId |
getTargetTC() |
java.lang.String |
getTheory() |
boolean |
in_1(alice.tuprolog.Term arg0) |
boolean |
in_all_2(alice.tuprolog.Term arg0,
alice.tuprolog.Term arg1) |
boolean |
inp_1(alice.tuprolog.Term arg0) |
boolean |
no_1(alice.tuprolog.Term arg0) |
boolean |
no_all_2(alice.tuprolog.Term arg0,
alice.tuprolog.Term arg1) |
boolean |
nop_1(alice.tuprolog.Term arg0) |
boolean |
out_1(alice.tuprolog.Term arg0) |
boolean |
out_all_1(alice.tuprolog.Term arg0) |
boolean |
rd_1(alice.tuprolog.Term arg0) |
boolean |
rd_all_2(alice.tuprolog.Term arg0,
alice.tuprolog.Term arg1) |
boolean |
rdp_1(alice.tuprolog.Term arg0) |
void |
setSpawnerId(TucsonAgentId id) |
void |
setSpawnerId(TucsonTupleCentreId id) |
void |
setTargetTC(TucsonTupleCentreId id) |
boolean |
uin_1(alice.tuprolog.Term arg0) |
boolean |
uinp_1(alice.tuprolog.Term arg0) |
boolean |
uno_1(alice.tuprolog.Term arg0) |
boolean |
unop_1(alice.tuprolog.Term arg0) |
boolean |
urd_1(alice.tuprolog.Term arg0) |
boolean |
urdp_1(alice.tuprolog.Term arg0) |
public final TucsonIdWrapper<?> getSpawnerId()
getId()
)public final TucsonTupleCentreId getTargetTC()
public java.lang.String getTheory()
getTheory
in class alice.tuprolog.Library
public boolean in_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean in_all_2(alice.tuprolog.Term arg0, alice.tuprolog.Term arg1)
arg0
- the tuple template argument of the operationarg1
- the tuple result of the operationpublic boolean inp_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean no_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean no_all_2(alice.tuprolog.Term arg0, alice.tuprolog.Term arg1)
arg0
- the tuple template argument of the operationarg1
- the tuple result of the operationpublic boolean nop_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean out_1(alice.tuprolog.Term arg0)
arg0
- the tuple argument of the operationpublic boolean out_all_1(alice.tuprolog.Term arg0)
arg0
- the tuple argument of the operationpublic boolean rd_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean rd_all_2(alice.tuprolog.Term arg0, alice.tuprolog.Term arg1)
arg0
- the tuple template argument of the operationarg1
- the tuple result of the operationpublic boolean rdp_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic final void setSpawnerId(TucsonAgentId id)
id
- the identifier of the agent whose behalf this spawn behaves onpublic final void setSpawnerId(TucsonTupleCentreId id)
id
- the identifier of the tuple centre whose behalf this spawn
behaves onpublic final void setTargetTC(TucsonTupleCentreId id)
id
- the identifier of the tuple centre this spawn is operating onpublic boolean uin_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean uinp_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean uno_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean unop_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean urd_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operationpublic boolean urdp_1(alice.tuprolog.Term arg0)
arg0
- the tuple template argument of the operation