Class FGate.OutSideGate

  • All Implemented Interfaces:
    io.aether.utils.interfaces.ObjectFind, Gate<ToNode,​ToOut>, GateI<ToNode>, io.aether.utils.ToString
    Enclosing class:
    FGate<ToNode,​ToOut>

    public class FGate.OutSideGate
    extends java.lang.Object
    implements Gate<ToNode,​ToOut>
    Represents the external side of the gate.
    • Constructor Detail

      • OutSideGate

        public OutSideGate()
    • Method Detail

      • getFGate

        public FGate<ToNode,​ToOut> getFGate()
        Returns the FGate instance to which this OutSideGate belongs.
        Returns:
        The FGate instance to which this OutSideGate belongs.
      • toString

        public void toString​(io.aether.utils.AString sb)
        Appends a string representation of the acceptor to the provided AString instance.
        Specified by:
        toString in interface io.aether.utils.ToString
        Parameters:
        sb - The AString instance to which the string representation will be appended.
      • toString

        public java.lang.String toString()
        Returns a string representation of the acceptor.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the acceptor.
      • find

        public <T> T find​(java.lang.Class<T> type)
        Finds an object of the specified type within the acceptor.
        Specified by:
        find in interface io.aether.utils.interfaces.ObjectFind
        Type Parameters:
        T - The type of the object to find.
        Parameters:
        type - The class of the object to find.
        Returns:
        An object of the specified type, or null if not found.
      • find

        public <T> T find​(io.aether.utils.CTypeI<T> type)
        Finds an object of the specified type within the acceptor.
        Specified by:
        find in interface io.aether.utils.interfaces.ObjectFind
        Type Parameters:
        T - The type of the object to find.
        Parameters:
        type - The CType of the object to find.
        Returns:
        An object of the specified type, or null if not found.
      • unlink

        public void unlink()
        Unlinks this OutSideGate from its current link.
        Specified by:
        unlink in interface Gate<ToNode,​ToOut>
      • link

        public Gate<ToOut,​ToNode> link()
        Returns the current link of this OutSideGate.
        Specified by:
        link in interface Gate<ToNode,​ToOut>
        Returns:
        The current link of this OutSideGate.
      • link0

        public void link0​(Gate<ToOut,​ToNode> g)
        Description copied from interface: Gate
        Internal method for setting the link without notification.
        Specified by:
        link0 in interface Gate<ToNode,​ToOut>
        Parameters:
        g - The gate to link to
      • link

        public void link​(Gate<ToOut,​ToNode> side)
        Links this OutSideGate to the specified side.
        Specified by:
        link in interface Gate<ToNode,​ToOut>
        Parameters:
        side - The Gate instance to which this OutSideGate will be linked.
      • send

        public void send​(Value<ToNode> value)
        Sends a value through the gate.
        Specified by:
        send in interface GateI<ToNode>
        Parameters:
        value - The Value instance to be sent.