simulator
Class CodeTable

java.lang.Object
  |
  +--simulator.CodeTable

class CodeTable
extends java.lang.Object

Create an association between vrml types and an integer using association of class in vrml.external.fields


Field Summary
private  java.util.Hashtable Tab
          This is the Hashtable that contains the codes
private  java.lang.String[] Types
          Contain the actual valid vrml type
 
Constructor Summary
CodeTable()
          Initialize the table of codes
 
Method Summary
 int Code(java.lang.String s)
          Return the code associate to the input vrml type
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Types

private final java.lang.String[] Types
Contain the actual valid vrml type

Tab

private java.util.Hashtable Tab
This is the Hashtable that contains the codes
Constructor Detail

CodeTable

public CodeTable()
Initialize the table of codes
Method Detail

Code

public int Code(java.lang.String s)
Return the code associate to the input vrml type
Parameters:
s - the string containing the vrml type
Returns:
the integer associated to the vrml type