Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用python中的titan DB_Java_Python_Database_Titan - Fatal编程技术网

Java 使用python中的titan DB

Java 使用python中的titan DB,java,python,database,titan,Java,Python,Database,Titan,我正在尝试使用Titan Graph DB对网络拓扑进行建模。我想从python应用程序中指定拓扑 我有一个java接口文件,它使用tinkertop框架注释。下面给出了一个示例结构 public interface IDeviceObject extends IBaseObject { @JsonProperty("mac") @Property("dl_addr") public String getMACAddress();

我正在尝试使用Titan Graph DB对网络拓扑进行建模。我想从python应用程序中指定拓扑

我有一个java接口文件,它使用
tinkertop框架
注释。下面给出了一个示例结构

public interface IDeviceObject extends IBaseObject {

          @JsonProperty("mac")
          @Property("dl_addr")
          public String getMACAddress();
         @Property("dl_addr")
          public void setMACAddress(String macaddr);

          @JsonProperty("ipv4")
          @Property("nw_addr")
          public String getIPAddress();
          @Property("nw_addr")
          public void setIPAddress(String ipaddr);

          @JsonIgnore
          @Adjacency(label="host",direction = Direction.IN)
          public Iterable<IPortObject> getAttachedPorts();

          @JsonIgnore
          @Adjacency(label="host",direction=Direction.IN)
          public void setHostPort(final IPortObject port);

          @JsonIgnore
          @Adjacency(label="host",direction=Direction.IN)
          public void removeHostPort(final IPortObject port);

          @JsonIgnore
          @GremlinGroovy("it.in('host').in('on')")
          public Iterable<ISwitchObject> getSwitch();
    }
public接口IDeviceObject扩展了IBaseObject{
@JsonProperty(“mac”)
@财产(“dl_地址”)
公共字符串getMACAddress();
@财产(“dl_地址”)
public void setMACAddress(字符串macaddr);
@JsonProperty(“ipv4”)
@地产(“西北地址”)
公共字符串getIPAddress();
@地产(“西北地址”)
public void setIPAddress(字符串ipaddr);
@杰索尼奥雷
@邻接(label=“host”,direction=direction.IN)
公共Iterable getAttachedPorts();
@杰索尼奥雷
@邻接(label=“host”,direction=direction.IN)
public void setHostPort(最终IPorObject端口);
@杰索尼奥雷
@邻接(label=“host”,direction=direction.IN)
public void removeHostPort(最终IPorObject端口);
@杰索尼奥雷
@GremlinGroovy(“it.in('host'))。in('on'))
公共Iterable getSwitch();
}
据我所知,tinkertop/frames是Titan DB的ORM。(我的假设正确吗?)


是否有类似的东西,例如用于Python for Titan DB的对象关系映射器?我正在寻找从Python映射拓扑的最简单方法

看看bulbflow:另外,请留意即将重新发布的thunderdome/Mogwai。