|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.portico.shared.model.MOMHelper
public class MOMHelper
This class helps do MOM related stuff (including 1.3/1516 conversions). As a result, it is VERY ugly internally. I can't understand why the IEEE 1516 standards group decided to ENTIRELY BREAK ALL BACKWARDS COMPATIBILITY by prefixing everything with "HLA", but they did. As a result, we have to do all sorts of ugly stuff we wouldn't normally have to do, so get used to it.
Nested Class Summary | |
---|---|
static class |
MOMHelper.Federate
Identifiers for the attributes of the Federate MOM class. |
static class |
MOMHelper.Federation
Same solution as for Federate above, see that comment for my thoughts |
Field Summary | |
---|---|
private HashSet<Integer> |
allFederateHandles
|
private HashSet<Integer> |
allFederationHandles
|
private HashMap<String,MOMHelper.Federate> |
federate13Attributes
|
private HashMap<String,MOMHelper.Federate> |
federate1516Attributes
|
static int |
FederateClass
|
private HashMap<String,MOMHelper.Federation> |
federation13Attributes
|
private HashMap<String,MOMHelper.Federation> |
federation1516Attributes
|
static int |
FederationClass
|
private static MOMHelper |
INSTANCE
|
static int |
ManagerClass
|
Constructor Summary | |
---|---|
private |
MOMHelper()
|
Method Summary | |
---|---|
static HashSet<Integer> |
getFederateAttributes()
|
static HashSet<Integer> |
getFederationAttributes()
|
static int |
getMOMAttributeHandle(int classHandle,
String name)
Fetch the handle for the MOM attribute of the given name in the MOM class of the given handle. |
static int |
getMOMClassHandle(String className)
Fetch the handle for the MOM class of the given name. |
static void |
insertMomHierarchy(ObjectModel theModel)
Build the hierarchy of MOM object classes and initialize them with the default handles. |
private static ACMetadata |
newAttribute(String name,
int handle)
|
static String |
strip1516Crap(String name)
This method will remove "HLA" from the front of any provided string and return the resulting string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ManagerClass
public static final int FederateClass
public static final int FederationClass
private static final MOMHelper INSTANCE
private HashMap<String,MOMHelper.Federate> federate13Attributes
private HashMap<String,MOMHelper.Federation> federation13Attributes
private HashMap<String,MOMHelper.Federate> federate1516Attributes
private HashMap<String,MOMHelper.Federation> federation1516Attributes
private HashSet<Integer> allFederateHandles
private HashSet<Integer> allFederationHandles
Constructor Detail |
---|
private MOMHelper()
Method Detail |
---|
public static HashSet<Integer> getFederateAttributes()
public static HashSet<Integer> getFederationAttributes()
public static int getMOMClassHandle(String className)
ObjectModel.INVALID_HANDLE
will be returned.
public static int getMOMAttributeHandle(int classHandle, String name)
ObjectModel.INVALID_HANDLE
will be returned.
public static String strip1516Crap(String name)
public static void insertMomHierarchy(ObjectModel theModel)
private static ACMetadata newAttribute(String name, int handle)
|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |