Class SimulationManager.RecordType

java.lang.Object
edu.nps.moves.dis7.utilities.SimulationManager.RecordType
Enclosing class:
SimulationManager

public class SimulationManager.RecordType extends Object
Simple simulation record type
  • Constructor Details

    • RecordType

      public RecordType(int id, String name, String description, String reference)
      Constructor for new record
      Parameters:
      id - identifying number
      name - common name
      description - longer description
      reference - formal reference for this record, if any
    • RecordType

      public RecordType(int id, String name)
      Utility constructor for new record, description and reference remain blank
      Parameters:
      id - identifying number
      name - common name
    • RecordType

      public RecordType(int id, String name, boolean isHostType)
      Utility constructor for new record, description and reference remain blank
      Parameters:
      id - identifying number
      name - common name
      isHostType - whether or not this record is for a host
  • Method Details

    • toString

      public String toString()
      Simple representation of record
      Overrides:
      toString in class Object
      Returns:
      id,name,"description"
    • getId

      public int getId()
      get record id
      Returns:
      the id
    • setId

      public SimulationManager.RecordType setId(int newID)
      set record id
      Parameters:
      newID - the id to set
      Returns:
      same object to permit progressive setters
    • getName

      public String getName()
      get record name
      Returns:
      the name
    • setName

      public SimulationManager.RecordType setName(String newName)
      set record name
      Parameters:
      newName - the name to set
      Returns:
      same object to permit progressive setters
    • getDescription

      public String getDescription()
      get record description
      Returns:
      the description
    • setDescription

      public SimulationManager.RecordType setDescription(String newDescription)
      set record description
      Parameters:
      newDescription - the description to set
      Returns:
      same object to permit progressive setters
    • getReference

      public String getReference()
      get record reference
      Returns:
      the reference
    • setReference

      public SimulationManager.RecordType setReference(String newReference)
      set record reference
      Parameters:
      newReference - the reference to set
      Returns:
      same object to permit progressive setters
    • getAlias

      public String getAlias()
      get record alias name
      Returns:
      the alias
    • setAlias

      public SimulationManager.RecordType setAlias(String alias)
      set record alias name
      Parameters:
      alias - the alias to set
      Returns:
      same object to permit progressive setters
    • isNetworkAddress

      public boolean isNetworkAddress()
      Does record represent a network address
      Returns:
      whether record is a network address
    • setNetworkAddress

      public void setNetworkAddress(boolean isAddress)
      Set whether record represents a network address
      Parameters:
      isAddress - the isAddress to set