The PortDirectionEnum enum defines a port as an input or output. This value is set in the constructor of a port class.
public enum PortDirectionEnum { PORTDIR_INPUT, PORTDIR_OUTPUT }