@@ -0,0 +1,2049 @@
+package org.inaetics.dronessimulator.common.protocol;%0A%0A%0Aimport org.inaetics.dronessimulator.common.D3PoolCoordinate;%0Aimport org.inaetics.dronessimulator.common.D3Vector;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Optional;%0A%0Apublic class CreateEntity %7B%0A    /** Indentifier of object */%0A    private String identifier = null;%0A%0A    /** Type of the object */%0A    private EntityType type;%0A%0A    /** The position of the object. */%0A    private D3Vector position = null;%0A%0A    /** The direction the object is in. */%0A    private D3PoolCoordinate direction = null;%0A%0A    /** The velocity of the object. */%0A    private D3Vector velocity = null;%0A%0A    /** The acceleration of the object. */%0A    private D3Vector acceleration = null;%0A%0A    public Optional%3CD3Vector%3E getPosition() %7B%0A        return Optional.ofNullable(position);%0A    %7D%0A%0A    public void setPosition(D3Vector position) %7B%0A        this.position = position;%0A    %7D%0A%0A    public Optional%3CD3PoolCoordinate%3E getDirection() %7B%0A        return Optional.ofNullable(direction);%0A    %7D%0A%0A    public void setDirection(D3PoolCoordinate direction) %7B%0A        this.direction = direction;%0A    %7D%0A%0A    public Optional%3CD3Vector%3E getVelocity() %7B%0A        return Optional.ofNullable(velocity);%0A    %7D%0A%0A    public void setVelocity(D3Vector velocity) %7B%0A        this.velocity = velocity;%0A    %7D%0A%0A    public Optional%3CD3Vector%3E getAcceleration() %7B%0A        return Optional.ofNullable(acceleration);%0A    %7D%0A%0A    public void setAcceleration(D3Vector acceleration) %7B%0A        this.acceleration = acceleration;%0A    %7D%0A%0A    public Optional%3CString%3E getIdentifier()%7B return Optional.ofNullable(identifier); %7D%0A%0A    public void setIdentifier(String identifier)%7B this.identifier = identifier; %7D%0A%0A    public EntityType getType() %7B%0A        return type;%0A    %7D%0A%0A    public void setType(EntityType type) %7B%0A        this.type = type;%0A    %7D%0A%0A    %0A    @Override%0A    public List%3CMessageTopic%3E getTopics() %7B%0A        List%3CMessageTopic%3E topics = new ArrayList%3C%3E();%0A%0A        topics.add(MessageTopic.MOVEMENTS);%0A%0A        return topics;%0A    %7D%0A%7D%0A

Add CreateEntity