Class Group

java.lang.Object
org.opentcs.data.TCSObject<Group>
org.opentcs.data.model.Group
All Implemented Interfaces:
java.io.Serializable

public class Group
extends TCSObject<Group>
implements java.io.Serializable
An aggregation of model elements.
See Also:
Serialized Form
  • Constructor Details

    • Group

      public Group​(java.lang.String name)
      Creates a new, empty group.
      Parameters:
      name - This group's name.
  • Method Details

    • withProperty

      public Group withProperty​(java.lang.String key, java.lang.String value)
      Description copied from class: TCSObject
      Creates a copy of this object, with the given property integrated.
      Specified by:
      withProperty in class TCSObject<Group>
      Parameters:
      key - The key of the property to be changed.
      value - The new value of the property, or null, if the property is to be removed.
      Returns:
      A copy of this object, with the given property integrated.
    • withProperties

      public Group withProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
      Description copied from class: TCSObject
      Creates a copy of this object, with the given properties.
      Specified by:
      withProperties in class TCSObject<Group>
      Parameters:
      properties - The properties.
      Returns:
      A copy of this object, with the given properties.
    • withHistoryEntry

      public TCSObject<Group> withHistoryEntry​(ObjectHistory.Entry entry)
      Description copied from class: TCSObject
      Creates a copy of this object, with the given history entry integrated.
      Specified by:
      withHistoryEntry in class TCSObject<Group>
      Parameters:
      entry - The history entry to be integrated.
      Returns:
      A copy of this object, with the given history entry integrated.
    • withHistory

      public TCSObject<Group> withHistory​(ObjectHistory history)
      Description copied from class: TCSObject
      Creates a copy of this object, with the given history.
      Specified by:
      withHistory in class TCSObject<Group>
      Parameters:
      history - The history.
      Returns:
      A copy of this object, with the given history.
    • getMembers

      public java.util.Set<TCSObjectReference<?>> getMembers()
      Returns an unmodifiable set of all members of this group.
      Returns:
      An unmodifiable set of all members of this group.
    • withMembers

      public Group withMembers​(java.util.Set<TCSObjectReference<?>> members)
      Creates a copy of this object, with the given members.
      Parameters:
      members - The value to be set in the copy.
      Returns:
      A copy of this object, differing in the given value.