prefixSuffix
=== Author: Assaf Ben Zur ===
All global prefix and suffix declerations.
All global Mns pre-defined dictionaries creation (i.e. mnsTypeDict/mnsSidesDict/mnsBuildObjectTypes)
This module also holds the MnsTypeStd class and the MnsNameStd class.
This module holds any global dict creation defenitions used in MNS.
Classes
MnsNameStd [Class]
This class holds simple attributes to extend pythos's 'node' object in order to preserve additional information regarding a node.
Any name related methods are held by this class.
Constructor: | MnsNameStd(**kwargs) |
Inherits from: | object |
Class Members: |
|
Methods: |
|
MnsNameStd methods
buildName [MnsNameStd class method]
Build the instance's name based on the current class members defenitions.
Constructor: | buildName(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
findNextAlphaIncrement [MnsNameStd class method]
Recursive.
Find next available Alpha id increment
Constructor: | findNextAlphaIncrement(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
findNextIncrement [MnsNameStd class method]
Recursive.
Find next available id increment
Constructor: | findNextIncrement(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
setNodeName [MnsNameStd class method]
Constructor: | setNodeName(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
splitDefinedName [MnsNameStd class method]
This function splits a given object name as string into an MnsNameStd object
Constructor: | splitDefinedName(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
splitName [MnsNameStd class method]
This function splits a given node name as string into an MnsNameStd object
Constructor: | splitName(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
MnsTypeStd [Class]
This class holds simple attributes to extend pythos's 'type' object in order to preserve additional information regarding a node's type.
Constructor: | MnsTypeStd(**kwargs) |
Inherits from: | object |
Class Members: |
|
Defenitions
buildMultKeysDict
Build a multy key dict for the given item list
Constructor: | buildMultKeysDict(items = []) |
Return: | dict |
Arguments: |
|
Keyword Arguments: |
buildOptionArrayFromDict
Construct an option list from the given dictionary
Constructor: | buildOptionArrayFromDict(dict = {}, **kwargs) |
Return: | list |
Arguments: |
|
Keyword Arguments: |
buildTypeDict
Build a dictionary for a given list, adding index (int) key and an index (string) key for each item
Constructor: | buildTypeDict(namesArray = []) |
Return: | dict |
Arguments: |
|
Keyword Arguments: |