com.ibm.tspaces.examples.simple
Class SuperHeros

java.lang.Object
  |
  +--com.ibm.tspaces.examples.simple.SuperHeros

public class SuperHeros
extends java.lang.Object
implements java.io.Serializable

This example is based on the SuperHeros example that was in one of the TSpaces publications One of the differentiating features of TSpaces is that it builds an index on each named field in a tuple. This enables clients to request tuples based solely on values in fields with a given name, regardless of the structure of the rest of the tuple (or even the position of the named field within the tuple). For example, an index query of the form ("foo",8) will select all tuples (of any format) containing a field named "foo" with the integer value 8. It is also possible to specify a range of values to be found in the index.Queries:

The current implementation of TSpaces provides four types of queries: Match, Index, And and Or queries. A Match query performs structural or object compatibility matching (depending on its argument), while an Index query performs a named-field query. And and Or queries can be used to combine these and build complex query trees.

Author:
John Thomas
See Also:
TupleSpace, Serialized Form

Constructor Summary
SuperHeros()
           
 
Method Summary
 void init()
          Here is where we will write the initial data to the tuplespace Then we will do the queries.
static void main(java.lang.String[] argv)
          This is an application so we have to have a main that gets control and picks out any parameters java ....SuperHeros hostname
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperHeros

public SuperHeros()
Method Detail

init

public void init()
Here is where we will write the initial data to the tuplespace Then we will do the queries.

main

public static void main(java.lang.String[] argv)
This is an application so we have to have a main that gets control and picks out any parameters java ....SuperHeros hostname