All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jupyterkernel.json.messages.T_execute_reply Maven / Gradle / Ivy

The newest version!
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.jupyterkernel.json.messages;

import org.json.JSONObject;
import org.json.JSONArray;
import org.jupyterkernel.util.JSONField;


/**
 *
 * @author kay schluehr
 */
public class T_execute_reply extends T_JSON {
    @JSONField
    public String status;
    
    @JSONField
    public Integer execution_count;

    @JSONField(type = "Choice")
    public JSONObject user_expression;

    @JSONField(type = "Choice")
    public String ename;

    @JSONField(type = "Choice")
    public String evalue;

    @JSONField(type = "Choice")
    public JSONArray traceback;
    
    public void setAnswer(T_execute_reply_ok reply)
    {
        this.user_expression = reply.user_expressions;
    }

    public void setAnswer(T_execute_reply_err reply)
    {
        this.ename  = reply.ename;
        this.evalue = reply.evalue;
        this.traceback = reply.traceback;
    }    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy