|
|||||||||
Home >> All >> alice >> [ infrastructure overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
alice.infrastructure
Class Tucson

java.lang.Objectalice.infrastructure.Tucson
- public class Tucson
- extends java.lang.Object
Defines the static service providing directly access to TuCSoN alice.infrastructure.
It provides the basic TuCSoN interface, which reflects the coordination language of the model.
- Version:
- 1.0
Field Summary | |
static int |
DEFAULT_PORT
TuCSoN infrastructure default port |
private static java.util.HashMap |
users
keeps track of users using the infrastructure |
static java.lang.String |
VERSION
TuCSoN infrastructure version |
Constructor Summary | |
Tucson()
|
Method Summary | |
static alice.logictuple.LogicTuple |
getSpec()
Gets the behaviour specification of the default tuple centre |
static alice.logictuple.LogicTuple |
getSpec(alice.tucson.TupleCentreId id)
Gets the behaviour specification of a specified tuple centre |
static alice.logictuple.LogicTuple |
in(alice.logictuple.LogicTuple t)
Gets (blocking) a matching logic tuples from the default tuple centre |
static alice.logictuple.LogicTuple |
in(alice.tucson.TupleCentreId id,
alice.logictuple.LogicTuple t)
Gets (blocking) a matching logic tuples from the specified tuple centre |
static alice.logictuple.LogicTuple |
inp(alice.logictuple.LogicTuple t)
Gets if present (without blocking) a matching logic tuples from the default tuple centre |
static alice.logictuple.LogicTuple |
inp(alice.tucson.TupleCentreId id,
alice.logictuple.LogicTuple t)
Gets if present (without blocking) a matching logic tuples from the specified tuple centre |
static void |
out(alice.logictuple.LogicTuple t)
Places (synchronously) a tuples on the default tuple centre |
static void |
out(alice.tucson.TupleCentreId id,
alice.logictuple.LogicTuple t)
Places (synchronously) a tuples on the specified tuple centre |
static void |
outAsync(alice.logictuple.LogicTuple t)
Places (asynchronously) a tuples on the default tuple centre |
static void |
outAsync(alice.tucson.TupleCentreId id,
alice.logictuple.LogicTuple t)
Places (asynchronously) a tuples on the specified tuple centre |
static alice.logictuple.LogicTuple |
rd(alice.logictuple.LogicTuple t)
Reads (blocking) a matching logic tuples from the default tuple centre |
static alice.logictuple.LogicTuple |
rd(alice.tucson.TupleCentreId id,
alice.logictuple.LogicTuple t)
Reads (blocking) a matching logic tuples from the specified tuple centre |
static alice.logictuple.LogicTuple |
rdp(alice.logictuple.LogicTuple t)
Reads if present (without blocking) a matching logic tuples from the default tuple centre |
static alice.logictuple.LogicTuple |
rdp(alice.tucson.TupleCentreId id,
alice.logictuple.LogicTuple t)
Reads if present (without blocking) a matching logic tuples from the specified tuple centre |
private static alice.tucson.User |
resolveUser()
Gets user info invoking the service. |
static alice.logictuple.LogicTuple |
setSpec(alice.logictuple.LogicTuple t)
Reads if present (without blocking) a matching logic tuples from the default tuple centre |
static alice.logictuple.LogicTuple |
setSpec(alice.tucson.TupleCentreId id,
alice.logictuple.LogicTuple t)
Sets the behaviour specification of a specified tuple centre |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
DEFAULT_PORT
public static final int DEFAULT_PORT
- TuCSoN infrastructure default port
- See Also:
- Constant Field Values
VERSION
public static final java.lang.String VERSION
- TuCSoN infrastructure version
- See Also:
- Constant Field Values
users
private static java.util.HashMap users
- keeps track of users using the infrastructure
Constructor Detail |
Tucson
public Tucson()
Method Detail |
out
public static void out(alice.tucson.TupleCentreId id, alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Places (synchronously) a tuples on the specified tuple centre
outAsync
public static void outAsync(alice.tucson.TupleCentreId id, alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Places (asynchronously) a tuples on the specified tuple centre
in
public static alice.logictuple.LogicTuple in(alice.tucson.TupleCentreId id, alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Gets (blocking) a matching logic tuples from the specified tuple centre
rd
public static alice.logictuple.LogicTuple rd(alice.tucson.TupleCentreId id, alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Reads (blocking) a matching logic tuples from the specified tuple centre
inp
public static alice.logictuple.LogicTuple inp(alice.tucson.TupleCentreId id, alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Gets if present (without blocking) a matching logic tuples from the specified tuple centre
rdp
public static alice.logictuple.LogicTuple rdp(alice.tucson.TupleCentreId id, alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Reads if present (without blocking) a matching logic tuples from the specified tuple centre
setSpec
public static alice.logictuple.LogicTuple setSpec(alice.tucson.TupleCentreId id, alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Sets the behaviour specification of a specified tuple centre
getSpec
public static alice.logictuple.LogicTuple getSpec(alice.tucson.TupleCentreId id) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException
- Gets the behaviour specification of a specified tuple centre
out
public static void out(alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Places (synchronously) a tuples on the default tuple centre
outAsync
public static void outAsync(alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Places (asynchronously) a tuples on the default tuple centre
in
public static alice.logictuple.LogicTuple in(alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Gets (blocking) a matching logic tuples from the default tuple centre
rd
public static alice.logictuple.LogicTuple rd(alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Reads (blocking) a matching logic tuples from the default tuple centre
inp
public static alice.logictuple.LogicTuple inp(alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Gets if present (without blocking) a matching logic tuples from the default tuple centre
rdp
public static alice.logictuple.LogicTuple rdp(alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Reads if present (without blocking) a matching logic tuples from the default tuple centre
setSpec
public static alice.logictuple.LogicTuple setSpec(alice.logictuple.LogicTuple t) throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException, alice.logictuple.InvalidLogicTupleException
- Reads if present (without blocking) a matching logic tuples from the default tuple centre
getSpec
public static alice.logictuple.LogicTuple getSpec() throws alice.tucson.NoTucsonNodeException, alice.tucson.TucsonIOException
- Gets the behaviour specification of the default tuple centre
resolveUser
private static alice.tucson.User resolveUser()
- Gets user info invoking the service.
if the user is not present, then create a new user.
|
|||||||||
Home >> All >> alice >> [ infrastructure overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |