private Pair <PropertyContainer, long> CreateTimestampedEntity(EntityCreator <PropertyContainer> creator, TimelineIndex <PropertyContainer> timeline, long timestamp) { PropertyContainer entity = creator.Create(); timeline.Add(entity, timestamp); return(Pair.of(entity, timestamp)); }
Group CreateEntity(string description) { Group group = EntityCreator.Create(); group.Name = description; return(group); }
public static Entity CreateEntity(String key, EntityCreator creator) { Entity entity = creator.Create(); SetEntity(key, entity); return entity; }
TimeBlock CreateEntity(Guid taskId, DateTime start) { TimeBlock task = EntityCreator.Create(); task.TaskId = taskId; task.Start = start; task.End = DateTime.MaxValue; return(task); }
Task CreateEntity(string description, Guid groupId) { Task task = EntityCreator.Create(); task.Description = description; task.GroupId = groupId; task.Index = GetNewTaskIndex(); return(task); }
public void Create(Process process, Entity entity) { EntityCreator.Create(this, process, entity); }