model
Class TopoSystem

java.lang.Object
  extended by model.TopoSystem

public class TopoSystem
extends java.lang.Object

Class for storing static data about topoloical relations.


Nested Class Summary
static class TopoSystem.RCC5
           
static class TopoSystem.RCC8
           
static class TopoSystem.RCCSystem
          a list of topological systems
 
Field Summary
private static java.util.HashMap<java.lang.String,TopoSystem.RCCSystem> systemMap
          a mapping of topological names to their rcc system
private static java.util.HashMap<java.lang.String,java.lang.String> topologicalHierarchy
          a mapping of topological values to the next higher granularity
private static java.util.HashMap<TopoSystem.RCCSystem,java.util.ArrayList<java.lang.String>> valuesMap
          a mapping of systems to the topological names
 
Constructor Summary
TopoSystem()
           
 
Method Summary
static TopoSystem.RCCSystem getSystem(java.lang.String topoName)
          Gets the RCC system for the specified topological name.
static java.lang.String getTopologicalName(java.lang.String topoName, TopoSystem.RCCSystem system)
          Gets the topological name of the specified value in the new topological system.
static java.util.ArrayList<java.lang.String> getTopoNames(TopoSystem.RCCSystem system)
          Gets the topological names for the specified system.
static boolean higherGranularity(TopoSystem.RCCSystem system1, TopoSystem.RCCSystem system2)
          Returns true if the first system has a higher granularity than the second system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemMap

private static java.util.HashMap<java.lang.String,TopoSystem.RCCSystem> systemMap
a mapping of topological names to their rcc system


valuesMap

private static java.util.HashMap<TopoSystem.RCCSystem,java.util.ArrayList<java.lang.String>> valuesMap
a mapping of systems to the topological names


topologicalHierarchy

private static java.util.HashMap<java.lang.String,java.lang.String> topologicalHierarchy
a mapping of topological values to the next higher granularity

Constructor Detail

TopoSystem

public TopoSystem()
Method Detail

getTopoNames

public static java.util.ArrayList<java.lang.String> getTopoNames(TopoSystem.RCCSystem system)
Gets the topological names for the specified system.

Parameters:
system - - the RCC system
Returns:
- the topological values in the system

getSystem

public static TopoSystem.RCCSystem getSystem(java.lang.String topoName)
Gets the RCC system for the specified topological name.

Parameters:
topoName - - the topological name
Returns:
- the RCC system

getTopologicalName

public static java.lang.String getTopologicalName(java.lang.String topoName,
                                                  TopoSystem.RCCSystem system)
Gets the topological name of the specified value in the new topological system. The new topological system must have a higher granularity than the current system of the topological value.

Parameters:
topoName - - the topological name
system - - the new RCC system
Returns:
- the topological name in the new RCC system

higherGranularity

public static boolean higherGranularity(TopoSystem.RCCSystem system1,
                                        TopoSystem.RCCSystem system2)
Returns true if the first system has a higher granularity than the second system. Returns false if the first system is an equal of coarser granularity than the second system.

Parameters:
system1 - - the first system
system2 - - the second system
Returns:
- true if the first system has a higher granularity