MicroTAPAS
Class Item

java.lang.Object
  |
  +--MicroTAPAS.Item
All Implemented Interfaces:
java.io.Serializable

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

This class is a part of the debug facilities, it holds information items. Item is one node in the tree hierarchy of status information of TAPAS entities

See Also:
Serialized Form

Field Summary
 Item[] list
          List of other items if the item is compound, otherwise it's null
 java.lang.String name
          Name of the information item
 java.lang.String value
          Value of the information item if list is null, otherwise it's null
 
Constructor Summary
Item(java.lang.String pName, Item[] pList, java.lang.String pValue)
          Constructor of the information item.
 
Method Summary
static void show(int l, MicroBaseFrame bf, Item t)
          Utility to parse and print a whole tree of Item hierarchy to a MicroBaseFrame object.
static void show(int l, MobilityManagerFrame mmf, java.awt.TextArea ta, Item t, boolean first)
          Utility to parse and print a whole tree of Item hierarchy to a MicroBaseFrame object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Name of the information item


list

public Item[] list
List of other items if the item is compound, otherwise it's null


value

public java.lang.String value
Value of the information item if list is null, otherwise it's null

Constructor Detail

Item

public Item(java.lang.String pName,
            Item[] pList,
            java.lang.String pValue)
Constructor of the information item. Items can be either simple or composite.

Parameters:
pName - Name of the information item
pList - List of the items that compose this item hierarchically if it's composite
pValue - Value of this information item if it's simple
Method Detail

show

public static void show(int l,
                        MicroBaseFrame bf,
                        Item t)
Utility to parse and print a whole tree of Item hierarchy to a MicroBaseFrame object.

Parameters:
l - Level of the item being printed in the hierarchy of items
bf - MicroBaseFrame to print the items into
t - The current item being printed recursively

show

public static void show(int l,
                        MobilityManagerFrame mmf,
                        java.awt.TextArea ta,
                        Item t,
                        boolean first)
Utility to parse and print a whole tree of Item hierarchy to a MicroBaseFrame object.

Parameters:
l - Level of the item being printed in the hierarchy of items
mmf - MobilityManagerFrame to print the items into
ta - The text area to print the information to.
t - The current item being printed recursively
first - Wheter it is the first time through the loop, if true the the heading wont be printed.


The Telematics Architecture for Plug-and-Play Systems (TAPAS) is a research project undertaken by the Norwegian University of Science and Technology's Telematics department which aims at developing an architecture for network-based service systems with a) flexibility and adaptability, b) robustness and survivability, and c) QoS awareness and resource control.

More information can be found at the project's homepage at http://tapas.item.ntnu.no and the project manager, Professor Finn Arve Aagesen, can be reached at finn.arve.aagesen@item.ntnu.no.