registerObjectClass(mammal);
registerObjectClass(insect);
registerObjectClass(reptile);
registerObjectClass(bird);
QmfAgentData cat = new QmfAgentData(mammal);
cat.setValue("name", "cat");
cat.setValue("legs", 4l);
addObject(cat);
QmfAgentData dog = new QmfAgentData(mammal);
dog.setValue("name", "dog");
dog.setValue("legs", 4l);
addObject(dog);
QmfAgentData rabbit = new QmfAgentData(mammal);
rabbit.setValue("name", "rabbit");
rabbit.setValue("legs", 4);
addObject(rabbit);
QmfAgentData horse = new QmfAgentData(mammal);
horse.setValue("name", "horse");
horse.setValue("legs", 4);
addObject(horse);
QmfAgentData human = new QmfAgentData(mammal);
human.setValue("name", "human");
human.setValue("legs", 2);
addObject(human);
QmfAgentData wasp = new QmfAgentData(insect);
wasp.setValue("name", "wasp");
wasp.setValue("legs", 6);
addObject(wasp);
QmfAgentData ant = new QmfAgentData(insect);
ant.setValue("name", "ant");
ant.setValue("legs", 6);
addObject(ant);
QmfAgentData crocodile = new QmfAgentData(reptile);
crocodile.setValue("name", "crocodile");
crocodile.setValue("legs", 4);
addObject(crocodile);
QmfAgentData gecko = new QmfAgentData(reptile);
gecko.setValue("name", "gecko");
gecko.setValue("legs", 4);
addObject(gecko);
QmfAgentData python = new QmfAgentData(reptile);
python.setValue("name", "python");
python.setValue("legs", 0);
addObject(python);
QmfAgentData hawk = new QmfAgentData(bird);
hawk.setValue("name", "hawk");
hawk.setValue("legs", 2);
addObject(hawk);
QmfAgentData ostrich = new QmfAgentData(bird);
ostrich.setValue("name", "ostrich");
ostrich.setValue("legs", 2);
addObject(ostrich);
System.out.println("total number of objects registered: " + _objectIndex.size());