Class PythonShellTableau

    • Constructor Detail

      • PythonShellTableau

        public PythonShellTableau​(PythonShellEffigy container,
                                  java.lang.String name)
                           throws IllegalActionException,
                                  NameDuplicationException
        Create a new tableau. The tableau is itself an entity contained by the effigy and having the specified name. The frame is not made visible automatically. You must call show() to make it visible.
        Parameters:
        container - The containing effigy.
        name - The name of this tableau within the specified effigy.
        Throws:
        IllegalActionException - If the tableau is not acceptable to the specified container.
        NameDuplicationException - If the container already contains an entity with the specified name.
    • Method Detail

      • evaluateCommand

        public java.lang.String evaluateCommand​(java.lang.String command)
                                         throws java.lang.Exception
        Evaluate the specified command.
        Specified by:
        evaluateCommand in interface ShellInterpreter
        Parameters:
        command - The command.
        Returns:
        The return value of the command, or null if there is none.
        Throws:
        java.lang.Exception - If something goes wrong processing the command.
        See Also:
        ShellTextArea.returnResult(String)
      • isCommandComplete

        public boolean isCommandComplete​(java.lang.String command)
        Return true if the specified command is complete (ready to be interpreted).
        Specified by:
        isCommandComplete in interface ShellInterpreter
        Parameters:
        command - The command.
        Returns:
        True.