public class TimedContext extends RootInterface implements ITimedContext
Constructor and Description |
---|
TimedContext(IRespectTC core) |
getCore, unify
public TimedContext(IRespectTC core)
core
- the ReSpecT tuple centres manager this interface refers topublic java.util.List<LogicTuple> get(IId aid, long ms) throws OperationNotPossibleException, OperationTimeOutException
get
in interface ITimedContext
aid
- the identifier of who is invokin the operationms
- the timeout for operation completionOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple in(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
in
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple inAll(IId aid, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
inAll
in interface ITimedContext
aid
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple inp(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
inp
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple no(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
no
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple noAll(IId aid, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
noAll
in interface ITimedContext
aid
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple nop(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
nop
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic void out(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
out
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic void outAll(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
outAll
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple rd(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
rd
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple rdAll(IId aid, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
rdAll
in interface ITimedContext
aid
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple rdp(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
rdp
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic java.util.List<LogicTuple> set(IId aid, LogicTuple t, long ms) throws OperationNotPossibleException, InvalidLogicTupleException, OperationTimeOutException
set
in interface ITimedContext
aid
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionOperationNotPossibleException
- if the operation requested cannot be carried outInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple spawn(IId aid, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
spawn
in interface ITimedContext
aid
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple uin(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
uin
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple uinp(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
uinp
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple uno(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
uno
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple unop(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
unop
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple urd(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
urd
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completionpublic LogicTuple urdp(IId id, LogicTuple t, long ms) throws InvalidLogicTupleException, OperationNotPossibleException, OperationTimeOutException
urdp
in interface ITimedContext
id
- the identifier of who is invokin the operationt
- the tuple argument of the operationms
- the timeout for operation completionInvalidLogicTupleException
- if the given argument is not a valid Prolog tupleOperationNotPossibleException
- if the operation requested cannot be carried outOperationTimeOutException
- if the given timeout expired prior to operation completion