Package edu.nps.moves.dis7.utilities
Class SimulationManager.RecordType
java.lang.Object
edu.nps.moves.dis7.utilities.SimulationManager.RecordType
-
Constructor Summary
ConstructorsConstructorDescriptionRecordType
(int id, String name) Utility constructor for new record, description and reference remain blankRecordType
(int id, String name, boolean isHostType) Utility constructor for new record, description and reference remain blankRecordType
(int id, String name, String description, String reference) Constructor for new record -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
get record alias nameget record descriptionint
getId()
get record idgetName()
get record nameget record referenceboolean
Does record represent a network addressset record alias namesetDescription
(String newDescription) set record descriptionsetId
(int newID) set record idset record namevoid
setNetworkAddress
(boolean isAddress) Set whether record represents a network addresssetReference
(String newReference) set record referencetoString()
Simple representation of record
-
Constructor Details
-
RecordType
-
RecordType
Utility constructor for new record, description and reference remain blank- Parameters:
id
- identifying numbername
- common name
-
RecordType
Utility constructor for new record, description and reference remain blank- Parameters:
id
- identifying numbername
- common nameisHostType
- whether or not this record is for a host
-
-
Method Details
-
toString
-
getId
public int getId()get record id- Returns:
- the id
-
setId
set record id- Parameters:
newID
- the id to set- Returns:
- same object to permit progressive setters
-
getName
-
setName
set record name- Parameters:
newName
- the name to set- Returns:
- same object to permit progressive setters
-
getDescription
-
setDescription
set record description- Parameters:
newDescription
- the description to set- Returns:
- same object to permit progressive setters
-
getReference
-
setReference
set record reference- Parameters:
newReference
- the reference to set- Returns:
- same object to permit progressive setters
-
getAlias
-
setAlias
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
-