Package ru.ispras.microtesk.settings
Class RegionSettings
- java.lang.Object
-
- ru.ispras.microtesk.settings.AbstractSettings
-
- ru.ispras.microtesk.settings.RegionSettings
-
- All Implemented Interfaces:
Range<java.math.BigInteger>
public final class RegionSettings extends AbstractSettings implements Range<java.math.BigInteger>
RegionSettings
represents a configuration of a single memory region.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegionSettings.Type
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TAG
-
Constructor Summary
Constructors Constructor Description RegionSettings(java.lang.String name, RegionSettings.Type type, java.math.BigInteger startAddress, java.math.BigInteger endAddress, MemoryAccessMode mode, MemoryAccessMode others)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(AbstractSettings section)
Default implementation (to be overridden in subclasses).boolean
canExecute()
boolean
canRead()
boolean
canWrite()
boolean
checkAddress(java.math.BigInteger address)
boolean
equals(java.lang.Object o)
java.util.Collection<AbstractSettings>
get(java.lang.String tag)
Default implementation (to be overridden in subclasses).java.util.Collection<AccessSettings>
getAccesses()
java.math.BigInteger
getEndAddress()
java.math.BigInteger
getMax()
java.math.BigInteger
getMin()
java.lang.String
getName()
Returns the name of the settings (to be overridden in subclasses).java.math.BigInteger
getStartAddress()
RegionSettings.Type
getType()
int
hashCode()
boolean
isEnabled()
boolean
isVolatile()
java.lang.String
toString()
-
Methods inherited from class ru.ispras.microtesk.settings.AbstractSettings
getSingle, getSingle, getTag
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RegionSettings
public RegionSettings(java.lang.String name, RegionSettings.Type type, java.math.BigInteger startAddress, java.math.BigInteger endAddress, MemoryAccessMode mode, MemoryAccessMode others)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:AbstractSettings
Returns the name of the settings (to be overridden in subclasses).- Overrides:
getName
in classAbstractSettings
- Returns:
- the settings name.
-
getType
public RegionSettings.Type getType()
-
getStartAddress
public java.math.BigInteger getStartAddress()
-
getEndAddress
public java.math.BigInteger getEndAddress()
-
canRead
public boolean canRead()
-
canWrite
public boolean canWrite()
-
canExecute
public boolean canExecute()
-
isEnabled
public boolean isEnabled()
-
isVolatile
public boolean isVolatile()
-
checkAddress
public boolean checkAddress(java.math.BigInteger address)
-
getAccesses
public java.util.Collection<AccessSettings> getAccesses()
-
getMin
public java.math.BigInteger getMin()
-
getMax
public java.math.BigInteger getMax()
-
get
public java.util.Collection<AbstractSettings> get(java.lang.String tag)
Description copied from class:AbstractSettings
Default implementation (to be overridden in subclasses).- Overrides:
get
in classAbstractSettings
- Parameters:
tag
- the tag of the sections to be returned.- Returns:
- Sections that correspond to the specified section tag.
-
add
public void add(AbstractSettings section)
Description copied from class:AbstractSettings
Default implementation (to be overridden in subclasses).- Overrides:
add
in classAbstractSettings
- Parameters:
section
- the settings's section to be added.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractSettings
-
-