*
* @return void
*/
- private function startAnnouncement () {
+ protected function startAnnouncement () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', 'announcement');
}
*
* @return void
*/
- private function startAnnouncementData () {
+ protected function startAnnouncementData () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', 'announcement-data');
}
*
* @return void
*/
- private function startNodeStatus () {
+ protected function startNodeStatus () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', self::ANNOUNCEMENT_DATA_NODE_STATUS);
}
*
* @return void
*/
- private function startNodeMode () {
+ protected function startNodeMode () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', self::ANNOUNCEMENT_DATA_NODE_MODE);
}
*
* @return void
*/
- private function startListener () {
+ protected function startListener () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', 'listener');
}
*
* @return void
*/
- private function startTcpPort () {
+ protected function startTcpPort () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', self::ANNOUNCEMENT_DATA_TCP_PORT);
}
*
* @return void
*/
- private function startUdpPort () {
+ protected function startUdpPort () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', self::ANNOUNCEMENT_DATA_UDP_PORT);
}
*
* @return void
*/
- private function startSessionId () {
+ protected function startSessionId () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', self::ANNOUNCEMENT_DATA_SESSION_ID);
}
*
* @return void
*/
- private function startExternalIp () {
+ protected function startExternalIp () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', self::ANNOUNCEMENT_DATA_EXTERNAL_IP);
}
*
* @return void
*/
- private function startInternalIp () {
+ protected function startInternalIp () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', self::ANNOUNCEMENT_DATA_INTERNAL_IP);
}
*
* @return void
*/
- private function startObjectTypeList () {
+ protected function startObjectTypeList () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', 'object-type-list');
}
*
* @return void
*/
- private function startObjectType () {
+ protected function startObjectType () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement', 'object-type');
}
*
* @return void
*/
- private function finishObjectType () {
+ protected function finishObjectType () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishObjectTypeList () {
+ protected function finishObjectTypeList () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishSessionId () {
+ protected function finishSessionId () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishInternalIp () {
+ protected function finishInternalIp () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishExternalIp () {
+ protected function finishExternalIp () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishUdpPort () {
+ protected function finishUdpPort () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishTcpPort () {
+ protected function finishTcpPort () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishListener () {
+ protected function finishListener () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishNodeMode () {
+ protected function finishNodeMode () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishNodeStatus () {
+ protected function finishNodeStatus () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishAnnouncementData () {
+ protected function finishAnnouncementData () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function finishAnnouncement () {
+ protected function finishAnnouncement () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement');
}
*
* @return void
*/
- private function startAnnouncementAnswer () {
+ protected function startAnnouncementAnswer () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', 'announcement-answer');
}
*
* @return void
*/
- private function startMyData () {
+ protected function startMyData () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', 'my-data');
}
*
* @return void
*/
- private function startMyExternalIp () {
+ protected function startMyExternalIp () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', self::ANNOUNCEMENT_DATA_EXTERNAL_IP);
}
*
* @return void
*/
- private function startMyInternalIp () {
+ protected function startMyInternalIp () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', self::ANNOUNCEMENT_DATA_INTERNAL_IP);
}
*
* @return void
*/
- private function startMyTcpPort () {
+ protected function startMyTcpPort () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', self::ANNOUNCEMENT_DATA_TCP_PORT);
}
*
* @return void
*/
- private function startMyUdpPort () {
+ protected function startMyUdpPort () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', self::ANNOUNCEMENT_DATA_UDP_PORT);
}
*
* @return void
*/
- private function startMySessionId () {
+ protected function startMySessionId () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', self::ANNOUNCEMENT_DATA_SESSION_ID);
}
*
* @return void
*/
- private function startMyStatus () {
+ protected function startMyStatus () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', self::ANNOUNCEMENT_DATA_NODE_STATUS);
}
*
* @return void
*/
- private function finishMyStatus () {
+ protected function finishMyStatus () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishMySessionId () {
+ protected function finishMySessionId () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishMyUdpPort () {
+ protected function finishMyUdpPort () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishMyTcpPort () {
+ protected function finishMyTcpPort () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishMyInternalIp () {
+ protected function finishMyInternalIp () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishMyExternalIp () {
+ protected function finishMyExternalIp () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishMyData () {
+ protected function finishMyData () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function startYourData () {
+ protected function startYourData () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', 'your-data');
}
*
* @return void
*/
- private function startYourExternalIp () {
+ protected function startYourExternalIp () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', 'your-external-ip');
}
*
* @return void
*/
- private function startYourInternalIp () {
+ protected function startYourInternalIp () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', 'your-internal-ip');
}
*
* @return void
*/
- private function startYourSessionId () {
+ protected function startYourSessionId () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', 'your-session-id');
}
*
* @return void
*/
- private function finishYourSessionId () {
+ protected function finishYourSessionId () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishYourInternalIp () {
+ protected function finishYourInternalIp () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishYourExternalIp () {
+ protected function finishYourExternalIp () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishYourData () {
+ protected function finishYourData () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function startAnswerStatus () {
+ protected function startAnswerStatus () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('announcement_answer', self::ANNOUNCEMENT_DATA_ANSWER_STATUS);
}
*
* @return void
*/
- private function finishAnswerStatus () {
+ protected function finishAnswerStatus () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function finishAnnouncementAnswer () {
+ protected function finishAnnouncementAnswer () {
// Pop the last entry
$this->getStackerInstance()->popNamed('announcement_answer');
}
*
* @return void
*/
- private function start??? () {
+ protected function start??? () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('!!!', '|||');
}
*
* @return void
*/
- private function finish??? () {
+ protected function finish??? () {
// Pop the last entry
$this->getStackerInstance()->popNamed('!!!');
}
// Init a variable stacker
$stackerInstance = ObjectFactory::createObjectByConfiguredName($typePrefix . '_' . $xmlTemplateType . '_stacker_class');
+ // Init stacker
+ $stackerInstance->initStacker($xmlTemplateType);
+
// Set it
$this->setStackerInstance($stackerInstance);
$this->typePrefix = $typePrefix;
// Set it in main nodes
- array_push($this->mainNodes, $xmlTemplateType);
+ array_push($this->mainNodes, str_replace('_', '-', $xmlTemplateType));
}
/**
*
* @return void
*/
- private function startSelfConnect () {
+ protected function startSelfConnect () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('self_connect', 'self-connect');
}
*
* @return void
*/
- private function startSelfConnectData () {
+ protected function startSelfConnectData () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('self_connect', 'self-connect-data');
}
*
* @return void
*/
- private function startNodeId () {
+ protected function startNodeId () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('self_connect', self::SELF_CONNECT_DATA_NODE_ID);
}
*
* @return void
*/
- private function startSessionId () {
+ protected function startSessionId () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('self_connect', self::SELF_CONNECT_DATA_SESSION_ID);
}
*
* @return void
*/
- private function finishSessionId () {
+ protected function finishSessionId () {
// Pop the last entry
$this->getStackerInstance()->popNamed('self_connect');
}
*
* @return void
*/
- private function finishNodeId () {
+ protected function finishNodeId () {
// Pop the last entry
$this->getStackerInstance()->popNamed('self_connect');
}
*
* @return void
*/
- private function finishSelfConnectData () {
+ protected function finishSelfConnectData () {
// Pop the last entry
$this->getStackerInstance()->popNamed('self_connect');
}
*
* @return void
*/
- private function finishSelfConnect () {
+ protected function finishSelfConnect () {
// Pop the last entry
$this->getStackerInstance()->popNamed('self_connect');
}
*
* @return void
*/
- private function startObjectRegistry () {
+ protected function startObjectRegistry () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('object_registry', 'object-registry');
}
* @return void
* @todo Handle $objectCount
*/
- private function startObjectList ($objectCount) {
+ protected function startObjectList ($objectCount) {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('object_registry', 'object-list');
}
*
* @return void
*/
- private function startObjectListEntry () {
+ protected function startObjectListEntry () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('object_registry', 'object-list');
}
*
* @return void
*/
- private function startObjectName () {
+ protected function startObjectName () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_NAME);
}
*
* @return void
*/
- private function startObjectRecipientLimitation () {
+ protected function startObjectRecipientLimitation () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_RECIPIENT_LIMITATION);
}
*
* @return void
*/
- private function startObjectMaxSpread () {
+ protected function startObjectMaxSpread () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_MAX_SPREAD);
}
*
* @return void
*/
- private function startObjectProtocol () {
+ protected function startObjectProtocol () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_PROTOCOL);
}
*
* @return void
*/
- private function startObjectRecipientType () {
+ protected function startObjectRecipientType () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_RECIPIENT_TYPE);
}
*
* @return void
*/
- private function finishObjectRecipientType () {
+ protected function finishObjectRecipientType () {
// Pop the last entry
$this->getStackerInstance()->popNamed('object_registry');
}
*
* @return void
*/
- private function finishObjectProtocol () {
+ protected function finishObjectProtocol () {
// Pop the last entry
$this->getStackerInstance()->popNamed('object_registry');
}
*
* @return void
*/
- private function finishObjectMaxSpread () {
+ protected function finishObjectMaxSpread () {
// Pop the last entry
$this->getStackerInstance()->popNamed('object_registry');
}
*
* @return void
*/
- private function finishObjectRecipientLimitation () {
+ protected function finishObjectRecipientLimitation () {
// Pop the last entry
$this->getStackerInstance()->popNamed('object_registry');
}
*
* @return void
*/
- private function finishObjectName () {
+ protected function finishObjectName () {
// Pop the last entry
$this->getStackerInstance()->popNamed('object_registry');
}
*
* @return void
*/
- private function finishObjectListEntry () {
+ protected function finishObjectListEntry () {
// Pop the last entry
$this->getStackerInstance()->popNamed('object_registry');
}
*
* @return void
*/
- private function finishObjectList () {
+ protected function finishObjectList () {
// Pop the last entry
$this->getStackerInstance()->popNamed('object_registry');
}
*
* @return void
*/
- private function finishObjectRegistry () {
+ protected function finishObjectRegistry () {
// Pop the last entry
$this->getStackerInstance()->popNamed('object_registry');
}
*
* @return void
*/
- private function startCruncherTestUnit () {
+ protected function startCruncherTestUnit () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'cruncher-test-unit');
}
*
* @return void
*/
- private function startMetaData () {
+ protected function startMetaData () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'meta-data');
}
*
* @return void
*/
- private function startGlobalProjectIdentifier () {
+ protected function startGlobalProjectIdentifier () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'global-project-identifier');
}
*
* @return void
*/
- private function finishGlobalProjectIdentifier () {
+ protected function finishGlobalProjectIdentifier () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function startTestUnitCreated () {
+ protected function startTestUnitCreated () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'test-unit-created');
}
*
* @return void
*/
- private function finishTestUnitCreated () {
+ protected function finishTestUnitCreated () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function startCipher () {
+ protected function startCipher () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'cipher');
}
*
* @return void
*/
- private function startCipherFunction () {
+ protected function startCipherFunction () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'cipher-function');
}
*
* @return void
*/
- private function finishCipherFunction () {
+ protected function finishCipherFunction () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function startCipherName () {
+ protected function startCipherName () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'cipher-name');
}
*
* @return void
*/
- private function finishCipherName () {
+ protected function finishCipherName () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function finishCipher () {
+ protected function finishCipher () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function finishMetaData () {
+ protected function finishMetaData () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function startUnprocessedData () {
+ protected function startUnprocessedData () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'unprocessed-data');
}
*
* @return void
*/
- private function startEncryptedMessage () {
+ protected function startEncryptedMessage () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'encrypted-message');
}
*
* @return void
*/
- private function finishEncryptedMessage () {
+ protected function finishEncryptedMessage () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
* @return void
* @todo Handle $keyCount
*/
- private function startCruncherKeyList ($keyCount) {
+ protected function startCruncherKeyList ($keyCount) {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'cruncher-key-list');
}
*
* @return void
*/
- private function startCruncherKey () {
+ protected function startCruncherKey () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'cruncher-key');
}
*
* @return void
*/
- private function startKeyId () {
+ protected function startKeyId () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'key-id');
}
*
* @return void
*/
- private function finishKeyId () {
+ protected function finishKeyId () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function startKeyValue () {
+ protected function startKeyValue () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('cruncher_test_unit', 'key-value');
}
*
* @return void
*/
- private function finishKeyValue () {
+ protected function finishKeyValue () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function finishCruncherKey () {
+ protected function finishCruncherKey () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function finishCruncherKeyList () {
+ protected function finishCruncherKeyList () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function finishUnprocessedData () {
+ protected function finishUnprocessedData () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function finishCruncherTestUnit () {
+ protected function finishaCruncherTestUnit () {
// Pop the last entry
$this->getStackerInstance()->popNamed('cruncher_test_unit');
}
*
* @return void
*/
- private function startNodeRequestNodeList () {
+ protected function startNodeRequestNodeList () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('node_request_node_list', 'node-request-node-list');
}
*
* @return void
*/
- private function startAcceptedObjectTypes () {
+ protected function startAcceptedObjectTypes () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('node_request_node_list', self::REQUEST_DATA_ACCEPTED_OBJECT_TYPES);
}
*
* @return void
*/
- private function startSessionId () {
+ protected function startSessionId () {
// Push the node name on the stacker
$this->getStackerInstance()->pushNamed('node_request_node_list', self::REQUEST_DATA_SESSION_ID);
}
*
* @return void
*/
- private function finishSessionId () {
+ protected function finishSessionId () {
// Pop the last entry
$this->getStackerInstance()->popNamed('node_request_node_list');
}
*
* @return void
*/
- private function finishAcceptedObjectTypes () {
+ protected function finishAcceptedObjectTypes () {
// Pop the last entry
$this->getStackerInstance()->popNamed('node_request_node_list');
}
*
* @return void
*/
- private function finishNodeRequestNodeList () {
+ protected function finishNodeRequestNodeList () {
// Pop the last entry
$this->getStackerInstance()->popNamed('node_request_node_list');
}