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
Synopsis
- 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 Source #
Generates the XML packet that contains information about what commands can the interface respond to
communicationStep :: CmdlPgipState -> CmdlState -> IO (CmdlPgipState, CmdlState) Source #
The function executes a communication step, i.e. waits for input, processes the message and outputs the answer
cmdlListenOrConnect2Port :: HetcatsOpts -> CmdlState -> IO CmdlState Source #
Comunicate over a port
timeoutReadPacket :: Int -> CmdlPgipState -> IO (Maybe String) Source #
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 Source #
Waits until it reads an entire XML packet
cmdlStartLoop :: Bool -> Handle -> Handle -> Int -> CmdlState -> IO CmdlState Source #
cmdlRunXMLShell :: CmdlState -> IO CmdlState Source #
Runs a shell in which the communication is expected to be through XML packets
processInput :: HetcatsOpts -> [FilePath] -> CmdlState -> IO CmdlState Source #
Processes a list of input files
cmdlRun :: HetcatsOpts -> IO CmdlState Source #
processString :: [CmdlXMLcommands] -> String -> CmdlState -> CmdlPgipState -> IO (CmdlState, CmdlPgipState) Source #
processMsgs :: CmdlState -> CmdlPgipState -> (CmdlPgipState, String) Source #
processCommand :: [CmdlXMLcommands] -> Command -> CmdlState -> CmdlPgipState -> IO (CmdlState, CmdlPgipState) Source #
postProcessCmd :: [CmdlXMLcommands] -> CmdlState -> CmdlPgipState -> Maybe Command -> IO (CmdlState, CmdlPgipState) Source #
informCmd :: CmdlState -> Maybe Command -> CmdlPgipState -> CmdlPgipState Source #
informDGraph :: HetcatsOpts -> LibName -> LibEnv -> CmdlPgipState -> CmdlPgipState Source #
processCmds :: [CmdlXMLcommands] -> CmdlState -> CmdlPgipState -> IO (CmdlState, CmdlPgipState) Source #
Executes given commands and returns output message and the new state