-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
431 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
''' | ||
Created on 2014年6月12日 | ||
@author: MyGeN | ||
Description:Config Tool Define | ||
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
''' | ||
Created on 2014年6月12日 | ||
@author: MyGeN | ||
Description:Logger Define | ||
''' | ||
import sys | ||
try: | ||
sys.path.index('../') | ||
pass | ||
except Exception: | ||
sys.path.append('../') | ||
pass | ||
|
||
import logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,92 @@ | ||
####################################################### | ||
# | ||
# | ||
# | ||
# Msg.py | ||
# Python implementation of the Class Msg | ||
# Generated by Enterprise Architect | ||
# Created on: 22-05-2014 23:15:10 | ||
# Original author: MyGeN | ||
# | ||
####################################################### | ||
# | ||
# | ||
|
||
|
||
class MSGTYPE(object): | ||
STOP = 0 | ||
INNER = 1 | ||
OUTER = 2 | ||
STOP = 0 | ||
INNER = 1 | ||
OUTER = 2 | ||
|
||
|
||
class Msg(object): | ||
def __init__(self, srcModel, dstModel, data = None, msgType = None, action = None): | ||
self.__sequence = 0 | ||
self.__src = srcModel | ||
self.__dst = dstModel | ||
self.__data = data | ||
self.__action = action | ||
self.__type = msgType | ||
pass | ||
ID = 0 | ||
|
||
@staticmethod | ||
def GenerateMsgID(): | ||
Msg.ID += 1 | ||
return Msg.ID | ||
|
||
def __init__(self, srcModel, dstModel, | ||
data=None, msgType=None, action=None): | ||
self.__sequence = 0 | ||
self.__src = srcModel | ||
self.__dst = dstModel | ||
self.__data = data | ||
self.__action = action | ||
self.__type = msgType | ||
pass | ||
|
||
def WarpSrcDst(self): | ||
self.__src, self.__dst = self.__dst, self.__src | ||
pass | ||
self.__src, self.__dst = self.__dst, self.__src | ||
pass | ||
|
||
#=========================================================================== | ||
#========================================================================= | ||
# 属性 | ||
#=========================================================================== | ||
#========================================================================= | ||
def get_data(self): | ||
return self.__data | ||
|
||
return self.__data | ||
|
||
def get_type(self): | ||
return self.__type | ||
|
||
return self.__type | ||
|
||
def get_src(self): | ||
return self.__src | ||
|
||
return self.__src | ||
|
||
def get_dst(self): | ||
return self.__dst | ||
return self.__dst | ||
|
||
def get_action(self): | ||
return self.__action | ||
|
||
return self.__action | ||
|
||
def set_data(self, value): | ||
self.__data = value | ||
|
||
self.__data = value | ||
|
||
def set_type(self, value): | ||
self.__type = value | ||
|
||
self.__type = value | ||
|
||
def set_src(self, value): | ||
self.__src = value | ||
|
||
self.__src = value | ||
|
||
def set_dst(self, value): | ||
self.__dst = value | ||
self.__dst = value | ||
|
||
def set_action(self, value): | ||
self.__action = value | ||
|
||
self.__action = value | ||
|
||
def del_data(self): | ||
del self.__data | ||
|
||
del self.__data | ||
|
||
def del_type(self): | ||
del self.__type | ||
|
||
del self.__type | ||
|
||
def del_src(self): | ||
del self.__src | ||
|
||
del self.__src | ||
|
||
def del_dst(self): | ||
del self.__dst | ||
del self.__dst | ||
|
||
def del_action(self): | ||
del self.__action | ||
del self.__action | ||
|
||
Data = property(get_data, set_data, del_data, "data's docstring") | ||
Type = property(get_type, set_type, del_type, "type's docstring") | ||
Src = property(get_src, set_src, del_src, "src's docstring") | ||
Dst = property(get_dst, set_dst, del_dst, "dst's docstring") | ||
Action = property(get_action, set_action, del_action, "action's docstring") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
####################################################### | ||
# | ||
# | ||
# | ||
# DataManager.py | ||
# Python implementation of the Class DataManager | ||
# Generated by Enterprise Architect | ||
# Created on: 22-����-2014 23:10:40 | ||
# Original author: MyGeN | ||
# | ||
####################################################### | ||
# | ||
# | ||
|
||
import sys | ||
try: | ||
sys.path.index('../') | ||
pass | ||
except Exception: | ||
sys.path.append('../') | ||
pass | ||
|
||
from Common.ThreadBase import ThreadBase | ||
|
||
|
||
class DataManager(ThreadBase): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
####################################################### | ||
# | ||
# | ||
# | ||
# SaveDataBase.py | ||
# Python implementation of the Class SaveDataBase | ||
# Generated by Enterprise Architect | ||
# Created on: 22-ÎåÔÂ-2014 23:10:40 | ||
# Created on: 22-????-2014 23:10:40 | ||
# Original author: MyGeN | ||
# | ||
####################################################### | ||
# | ||
# | ||
|
||
import sys | ||
try: | ||
sys.path.index('../') | ||
pass | ||
except Exception: | ||
sys.path.append('../') | ||
pass | ||
|
||
|
||
class SaveDataBase: | ||
pass | ||
pass |
Oops, something went wrong.