Documentation ¶
Index ¶
- Constants
- Variables
- func CheckFileName(fileName, fileExtension string)
- func CompatibleComponents(componentTypeName1, componentTypeName2 string) bool
- func Contains(list []string, value string) bool
- func EnvironmentVariableValue(variable string) (value string)
- func EnvironmentVariableValueWithDefault(variable, defaultValue string) string
- func ErrorHandler(f string, msg string)
- func GetComponentTypeByNameFromRAM(componentName string) interface{}
- func GetFunction() string
- func GetTypeAndBehaviour(file string) (string, string, error)
- func IsExternal(action string) bool
- func IsInternal(action string) bool
- func LocalizeFDR() string
- func LocalizeGo() string
- func LocalizegMidArch() string
- func MyInvoke(compType interface{}, compId string, op string, msg *messages.SAMessage, ...)
- func MyTokenize(s string) []string
- func SaveFile(path, name, ext string, content []string)
- func SkipLine(line string) bool
- func StringComposition(e []string, sep string, hasSpace bool) string
- type AdaptationPlan
- type EvolutiveAnalysisResult
- type MonitoredEvolutiveData
- type UnitCommand
Constants ¶
View Source
const ACTION_PREFIX = "->"
View Source
const ATTEMPTS_TO_OPEN_A_PLUGIN = 1000
View Source
const BEHAVIOUR_ID = "Behaviour"
View Source
const BEHAVIOUR_TAG = "// @Behaviour:"
View Source
const CALCULATOR_HOST = "localhost" //"server" //
View Source
const CALCULATOR_PORT = "1314"
View Source
const CHOICE = "[]"
View Source
const CORINGA = "XXX"
View Source
const CSP_EXTENSION = "csp"
View Source
const DEADLOCK_PROPERTY = "assert " + CORINGA + " :[deadlock free]"
View Source
const DOT_EXTENSION = "dot"
View Source
const EVOLUTIVE_ADAPTATION string = "EVOLUTIVE"
View Source
const EVOLUTIVE_PROTOCOL_ADAPTATION string = "EVOLUTIVE_PROTOCOL"
View Source
const EXECUTE_FOREVER = true
View Source
const FDR_COMMAND = "refines"
View Source
const FIBONACCI_PORT = "1315"
View Source
const FIRST_MONITOR_TIME time.Duration = 10 * time.Second
Evolution
View Source
const INVP = "InvP"
Port names
View Source
const INVR = "InvR"
View Source
const LEFT_ARITY = 1
View Source
const MADL_COMMENT = "//"
MADL
View Source
const MADL_EXTENSION = "madl"
File extensions
View Source
const MAXIMUM_GRAPH_SIZE = 15
View Source
const MAX_LEFT_ARITY = 99
View Source
const MAX_NUMBER_OF_CONNECTIONS = 10
View Source
const MAX_NUMBER_OF_RECEIVED_MESSAGES = 300 // messages received and not processed by srh
View Source
const MAX_RIGHT_ARITY = 99
View Source
const MONITOR_TIME time.Duration = 100 * time.Millisecond
View Source
const NAMING_HOST = "localhost" // "namingserver" //
View Source
const NAMING_PORT = "1313"
Network setups
View Source
const NON_ADAPTIVE string = "NONE"
View Source
const NTOONE = "Ntoone"
View Source
const NTOONEREQREP = "Ntoonereqrep"
View Source
const NUM_MAX_MESSAGE_BYTES int = 1024
View Source
const NUM_MAX_NODES int = 50
View Source
const ONETON = "Oneton"
View Source
const ONETONREQREP = "Onetonreqrep"
View Source
const ONEWAY = "Oneway"
Connectors
View Source
const PREFIX_INTERNAL_ACTION = "I_"
Graphs
View Source
const QUEUEING_PORT = "1316"
View Source
const REPLACE_COMPONENT = "REPLACE_COMPONENT"
View Source
const REQUEST_REPLY = "Requestreply"
View Source
const RIGHT_ARITY = 2
View Source
const RUNTIME_BEHAVIOUR = "RUNTIME"
CSP
View Source
const SIZE_OF_MESSAGE_SIZE = 4
View Source
const TERP = "TerP"
View Source
const TERR = "TerR"
View Source
const TYPE_TAG = "// @Type:"
Variables ¶
View Source
var AdaptId = -1
View Source
var Adaptability []string
View Source
var AdaptationTypes = map[string]string{
"EVOLUTIVE": "EVOLUTIVE",
"EVOLUTIVE_PROTOCOL": "EVOLUTIVE_PROTOCOL",
"NONE": "NONE"}
View Source
var ArchitecturalComponentTypes = map[string]interface{}{}
View Source
var CA_PATH = EnvironmentVariableValue("CA_PATH")
View Source
var CRT_PATH = EnvironmentVariableValue("CRT_PATH")
View Source
var DIR_ADAPTIVE_COMPONENTS = DIR_BASE + "/pkg/gmidarch/development/components/adaptive"
View Source
var DIR_APP_COMPONENTS = DIR_BASE + "/pkg/gmidarch/development/components/apps"
View Source
var DIR_BASE = LocalizegMidArch()
View Source
var DIR_BUSINESS_COMPONENTS = EnvironmentVariableValue("MIDARCH_BUSINESS_COMPONENTS_PATH")
View Source
var DIR_CSP = DIR_BASE + "/pkg/apps/artefacts/csp"
View Source
var DIR_DOT = DIR_BASE + "/pkg/gmidarch/development/repositories/dot"
View Source
var DIR_FDR = LocalizeFDR()
View Source
var DIR_GO = ""
Directories
View Source
var DIR_MADL = DIR_BASE + "/pkg/apps/artefacts/madls"
View Source
var DIR_MIDDLEWARE_COMPONENTS = DIR_BASE + "/pkg/gmidarch/development/components/middleware"
View Source
var DIR_PLUGINS = DIR_BASE + "/pkg/gmidarch/execution/repositories/plugins"
View Source
var DIR_PLUGINS_IMPORT = "github.com/gfads/midarch/pkg/gmidarch/development/repositories/plugins"
View Source
var DIR_PLUGINS_SOURCE = DIR_BASE + "/pkg/gmidarch/development/repositories/plugins"
View Source
var DIR_PROXIES_COMPONENTS = DIR_BASE + "/pkg/gmidarch/development/components/proxies"
View Source
var ExecuteForever = true
View Source
var INJECTION_TIME time.Duration
View Source
var KEY_PATH = EnvironmentVariableValue("KEY_PATH")
View Source
var LocalAddr = ""
View Source
var SetOfPorts = map[string]string{ "NAMING_PORT": NAMING_PORT, "CALCULATOR_PORT": CALCULATOR_PORT, "FIBONACCI_PORT": FIBONACCI_PORT, "QUEUEING_PORT": QUEUEING_PORT}
Functions ¶
func CheckFileName ¶
func CheckFileName(fileName, fileExtension string)
func CompatibleComponents ¶
func ErrorHandler ¶
func GetComponentTypeByNameFromRAM ¶
func GetComponentTypeByNameFromRAM(componentName string) interface{}
func GetFunction ¶
func GetFunction() string
func IsExternal ¶
func IsInternal ¶
func LocalizeFDR ¶
func LocalizeFDR() string
func LocalizeGo ¶
func LocalizeGo() string
func LocalizegMidArch ¶
func LocalizegMidArch() string
func MyInvoke ¶
func MyInvoke(compType interface{}, compId string, op string, msg *messages.SAMessage, info *interface{}, reset *bool)
Utility functions
func MyTokenize ¶
Types ¶
type AdaptationPlan ¶
type EvolutiveAnalysisResult ¶
type EvolutiveAnalysisResult struct { NeedAdaptation bool MonitoredEvolutiveData MonitoredEvolutiveData }
type MonitoredEvolutiveData ¶
type MonitoredEvolutiveData []string // used in channel Monitor -> Analyser (Evolutive)
var ListOfComponentsToAdaptTo MonitoredEvolutiveData
Click to show internal directories.
Click to hide internal directories.