Copyright | uni-bremen and DFKI |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | r.pascanu@jacobs-university.de |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
PGIP.XMLparsing contains commands for parsing or creating XML messages
- addPGIPHandshake :: CmdlPgipState -> CmdlPgipState
- communicationStep :: CmdlPgipState -> CmdlState -> IO (CmdlPgipState, CmdlState)
- cmdlListenOrConnect2Port :: HetcatsOpts -> CmdlState -> IO CmdlState
- timeoutReadPacket :: Int -> CmdlPgipState -> IO (Maybe String)
- readPacket :: String -> Handle -> IO String
- cmdlStartLoop :: Bool -> Handle -> Handle -> Int -> CmdlState -> IO CmdlState
- waitLoop :: CmdlPgipState -> CmdlState -> IO CmdlState
- cmdlRunXMLShell :: CmdlState -> IO CmdlState
- processInput :: HetcatsOpts -> [FilePath] -> CmdlState -> IO CmdlState
- cmdlRun :: HetcatsOpts -> IO CmdlState
- processString :: [CmdlXMLcommands] -> String -> CmdlState -> CmdlPgipState -> IO (CmdlState, CmdlPgipState)
- processMsgs :: CmdlState -> CmdlPgipState -> (CmdlPgipState, String)
- processCommand :: [CmdlXMLcommands] -> Command -> CmdlState -> CmdlPgipState -> IO (CmdlState, CmdlPgipState)
- postProcessCmd :: [CmdlXMLcommands] -> CmdlState -> CmdlPgipState -> Maybe Command -> IO (CmdlState, CmdlPgipState)
- informCmd :: CmdlState -> Maybe Command -> CmdlPgipState -> CmdlPgipState
- informDGraph :: HetcatsOpts -> LibName -> LibEnv -> CmdlPgipState -> CmdlPgipState
- processCmds :: [CmdlXMLcommands] -> CmdlState -> CmdlPgipState -> IO (CmdlState, CmdlPgipState)
Documentation
addPGIPHandshake :: CmdlPgipState -> CmdlPgipState
Generates the XML packet that contains information about what commands can the interface respond to
communicationStep :: CmdlPgipState -> CmdlState -> IO (CmdlPgipState, CmdlState)
The function executes a communication step, i.e. waits for input, processes the message and outputs the answer
cmdlListenOrConnect2Port :: HetcatsOpts -> CmdlState -> IO CmdlState
Comunicate over a port
timeoutReadPacket :: Int -> CmdlPgipState -> IO (Maybe String)
Reads from a handle, it waits only for a certain amount of time, if no input comes it will return Nothing
readPacket :: String -> Handle -> IO String
Waits until it reads an entire XML packet
waitLoop :: CmdlPgipState -> CmdlState -> IO CmdlState
cmdlRunXMLShell :: CmdlState -> IO CmdlState
Runs a shell in which the communication is expected to be through XML packets
processInput :: HetcatsOpts -> [FilePath] -> CmdlState -> IO CmdlState
Processes a list of input files
cmdlRun :: HetcatsOpts -> IO CmdlState
processString :: [CmdlXMLcommands] -> String -> CmdlState -> CmdlPgipState -> IO (CmdlState, CmdlPgipState)
processMsgs :: CmdlState -> CmdlPgipState -> (CmdlPgipState, String)
processCommand :: [CmdlXMLcommands] -> Command -> CmdlState -> CmdlPgipState -> IO (CmdlState, CmdlPgipState)
postProcessCmd :: [CmdlXMLcommands] -> CmdlState -> CmdlPgipState -> Maybe Command -> IO (CmdlState, CmdlPgipState)
informCmd :: CmdlState -> Maybe Command -> CmdlPgipState -> CmdlPgipState
informDGraph :: HetcatsOpts -> LibName -> LibEnv -> CmdlPgipState -> CmdlPgipState
processCmds :: [CmdlXMLcommands] -> CmdlState -> CmdlPgipState -> IO (CmdlState, CmdlPgipState)
Executes given commands and returns output message and the new state