public static GraphNodeType CreateInstance(GameObject go, DateTime time, string host, Vector3 pos, GameObject miniGo, bool act = false, int num = 3) { GraphNodeType inst = CreateInstance <GraphNodeType>(); inst.Init(go, time, host, pos, act, num); inst.InitSubNodes(new string[] { time.ToString(), host, pos.ToString() }, miniGo); return(inst); }
private GraphNodeType GenerateProc(Vector3 createPos, string user, string process_name, int pid) { GraphNodeType newProc = InstProc(createPos, DateTime.Today, user); newProc.setProcessName(process_name); newProc.setProcessId(pid); newProc.InitSubNodes(new string[] { "User: "******"Process Name: " + process_name, "PID: " + pid.ToString() }, subNodePrefab); newProc.getObject().name = "process_" + pid.ToString(); nodeCount++; return(newProc); }
public GraphNodeType GenerateConn(Vector3 createPos, DateTime time, string process, string remoteAddress) { GraphNodeType nodeCreated = null; nodeCreated = InstHost(createPos, time, process); nodeCreated.setRemoteAddress(remoteAddress); // @TODO make this more then just example flavor // @TODO: labels should come from dictionary keys nodeCreated.InitSubNodes(new string[] { "Connection Time: " + nodeCreated.getTime().ToString(), "User: "******"Dest IP: " + nodeCreated.getRemoteAddress() }, subNodePrefab); if (nodeCreated != null) { nodeCreated.getObject().name = "host" + process; nodeCount++; } return(nodeCreated); }