grinda.common
Class Utils

java.lang.Object
  extended by grinda.common.Utils

public class Utils
extends java.lang.Object

Support Methods for handling Internal tuple


Constructor Summary
Utils()
           
 
Method Summary
static InternalTuple getAbsoluteTemplate(InternalTuple src)
          Gets the absolute template (i.e. a tuple with no constants at all) that represents the given tuple
static boolean isAbstract(InternalTuple t)
           
static boolean isBlocking(TupleSpaceOperation op)
          Returns true if the operation is a blocking operation
static boolean isIndempotent(TupleSpaceOperation op)
           
static boolean isSpecial(InternalTuple t)
           
static boolean isWriting(TupleSpaceOperation op)
           
static boolean match(InternalTuple t1, InternalTuple t2)
          Executes the associative match upon two internal tuples
static java.lang.String toString(InternalTuple t)
           
static Tuple[] toTupleArray(InternalTuple[] t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

match

public static boolean match(InternalTuple t1,
                            InternalTuple t2)
Executes the associative match upon two internal tuples

Parameters:
t1 -
t2 -
Returns:
true if the two tuples matches

getAbsoluteTemplate

public static InternalTuple getAbsoluteTemplate(InternalTuple src)
Gets the absolute template (i.e. a tuple with no constants at all) that represents the given tuple

Parameters:
src - the tuple
Returns:
the absolute template associated

isAbstract

public static boolean isAbstract(InternalTuple t)

isBlocking

public static boolean isBlocking(TupleSpaceOperation op)
Returns true if the operation is a blocking operation

Parameters:
op - TupleSpaceOperation
Returns:
boolean

isIndempotent

public static boolean isIndempotent(TupleSpaceOperation op)

isWriting

public static boolean isWriting(TupleSpaceOperation op)

isSpecial

public static boolean isSpecial(InternalTuple t)

toTupleArray

public static Tuple[] toTupleArray(InternalTuple[] t)

toString

public static java.lang.String toString(InternalTuple t)


Copyright © 2006 Sirio Capizzi. All Rights Reserved.