Affectable
, Behavable
, CMObject
, Contingent
, DBIdentifiable
, Environmental
, Expireable
, Modifiable
, MsgListener
, Physical
, PhysicalAgent
, Readable
, Rider
, StatsAffecting
, Tickable
, Item
, Software
, Technical
, Wearable
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class DatabaseProgram extends GenShipProgram
Software.SoftwareProcedure, Software.SWServices
Technical.TechCommand, Technical.TechType
Wearable.CODES
Modifier and Type | Field | Description |
---|---|---|
protected MiniJSON.JSONObject |
data |
|
protected long |
nextPowerCycleTmr |
|
protected java.lang.StringBuffer |
scr |
|
protected BoundedObject.BoundedCube |
spaceCube |
|
Filterer<SpaceObject> |
spaceFilter |
idConverter
activateProcedure, activationCounter, cachedComponents, components, dampers, deactivateProcedure, DEFAULT_ACT_8_SEC_COUNTDOWN, engines, miscsystems, readableText, sensors, shields, weapons
intName, parent, settings
_name, affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValues
cachedManufact, circuitKey, currentScreen, isActivated, manufacturer, nextMsg, svcs
DEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD
Constructor | Description |
---|---|
DatabaseProgram() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addLineToReadableScreen(java.lang.String s) |
|
protected boolean |
checkActivate(MOB mob,
java.lang.String message) |
|
protected boolean |
checkDeactivate(MOB mob,
java.lang.String message) |
|
protected boolean |
checkPowerCurrent(int value) |
|
protected boolean |
checkTyping(MOB mob,
java.lang.String message) |
|
protected long[] |
convertStringToCoords(java.lang.String coordStr) |
|
protected java.util.List<SpaceObject> |
dbQuerySpaceObjects(java.lang.String query,
boolean near) |
|
protected void |
decache() |
|
protected java.lang.String |
doDBQuery(java.util.List<java.lang.String> parsed,
java.lang.String query) |
|
protected boolean |
doesNameExistInData(java.lang.String name,
java.lang.String okKey) |
|
protected java.util.Set<java.lang.String> |
doKeyQuery(java.lang.String query,
boolean noNotes) |
|
protected java.lang.String |
doSectorQuery(java.lang.String query) |
|
protected java.util.List<SpaceObject> |
findDBSpaceObjects(long[] coords,
long radius) |
|
java.lang.String |
getActivationMenu() |
Returns the menu name of this software, so that it can
be identified on its parent screen.
|
protected java.util.List<SpaceObject> |
getAllBoundSpaceObjects(BoundedObject.BoundedCube bcube) |
|
protected java.lang.String |
getAllSpaceObjectDataResults(long[] coords) |
|
protected Software.SWServices[] |
getAppreciatedServices() |
|
protected long[] |
getCheckedCoords(java.lang.String key) |
|
java.lang.String |
getCurrentScreenDisplay() |
Returns the full screen appearance of this program when
it is activated and on the screen.
|
protected java.lang.String |
getCustomNotes(long[] coords) |
|
protected long[] |
getDataCoords(java.lang.String key) |
|
protected java.lang.String |
getDataName(java.lang.String key) |
|
protected java.lang.String |
getDataResults(java.lang.String key) |
|
protected Software.SWServices[] |
getProvidedServices() |
|
protected java.lang.String |
getReportOnSpaceObject(SpaceObject obj) |
|
java.lang.String |
getSettings() |
Returns settings specific to this disk.
|
protected java.lang.String |
getSpaceObjectDataResults(java.lang.String key,
long[] ccoords,
MiniJSON.JSONObject jo) |
|
protected Pair<java.lang.String,java.lang.String> |
getTargetKeyName(int context) |
|
protected java.util.List<java.lang.String> |
getValues(java.lang.String key,
boolean noNotes) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
boolean |
isActivationString(java.lang.String word) |
Returns whether the given computer-entry command
should be responded to by THIS software object
on an activation command.
|
boolean |
isCommandString(java.lang.String word,
boolean isActive) |
Returns whether the given computer-entry command
should be responded to by THIS software object
on a WRITE/ENTER command.
|
protected boolean |
isDBSpaceObject(SpaceObject sO) |
|
boolean |
isDeActivationString(java.lang.String word) |
Returns whether the given computer-entry command
should be responded to by THIS software object
on a deactivation command.
|
protected void |
onActivate(MOB mob,
java.lang.String message) |
|
protected void |
onDeactivate(MOB mob,
java.lang.String message) |
|
protected void |
onPowerCurrent(int value) |
|
protected void |
onTyping(MOB mob,
java.lang.String message) |
|
protected void |
provideService(Software.SWServices service,
Software S,
java.lang.String[] parms,
CMMsg msg) |
|
void |
setSettings(java.lang.String var) |
Sets settings specific to this disk.
|
protected void |
shutdown() |
|
protected SpaceObject |
spaceCubeMatch(java.lang.String query) |
|
protected java.util.List<SpaceObject> |
spaceCubeSearch(java.lang.String query) |
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts
copyOf, initializeClass, newInstance
canSaveDatabaseID, databaseID, setDatabaseID
executeMsg, findComponentByID, findComponentByName, findCoordinates, findEngineByName, findEngineByPort, findSensorByName, findShieldByName, findWeaponByName, getComponent, getDampeners, getEngines, getShipSensors, getShipShields, getShipWeapons, getSystemMiscComponents, getTechComponents, getTechType, isWeaponLauncher, onActivationTimer, onPowerTimer, sendMessage, trySendMsgToItem
getInternalName, getParentMenu, getStat, getStatCodes, isGeneric, readableText, sameAs, setInternalName, setMiscText, setParentMenu, setReadableText, setStat, text
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isReadable, setReadable
abilityImbuesMagic, addBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, affectPhyStats, alreadyWornMsg, amBeingWornProperly, amDestroyed, amWearingAt, baseGoldValue, basePhyStats, behaviors, canSaveDatabaseID, canWear, canWearComplete, cloneFix, compareProperLocations, compareTo, container, copyOf, databaseID, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delEffect, delScript, description, description, destroy, displayText, displayText, eachBehavior, eachEffect, eachScript, effects, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fitsOn, getSaveStatIndex, getTickStatus, I, image, initializeClass, isReadable, isSavable, isStat, L, material, maxRange, minRange, miscTextFormat, name, name, Name, newInstance, numBehaviors, numberOfItems, numEffects, numScripts, owner, phyStats, rawImage, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, recoverPhyStats, recursiveWeight, removeFromOwnerContainer, riding, scripts, secretIdentity, setBasePhyStats, setBaseValue, setContainer, setDatabaseID, setDescription, setDisplayText, setExpirationDate, setImage, setMaterial, setName, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadable, setRiding, setSavable, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, tackOns, tick, ultimateContainer, unWear, usesRemaining, value, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
addScreenMessage, display, display, display, displayPerSec, doServiceRequests, doServiceTransaction, forceNewMenuRead, forceNewMessageScan, forceUpMenu, genericName, getFinalManufacturer, getManufacturerName, getMyComputer, getPeerComputers, getPeerComputingRooms, getRequiredServices, getResponseComputers, getScreenMessage, handleServices, okMessage, sendServiceMsg, sendSoftwareRespMsg, setCircuitKey, setCurrentScreenDisplay, setManufacturerName, setTechLevel, techLevel, trimColorsAndTrim
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
protected volatile long nextPowerCycleTmr
protected final java.lang.StringBuffer scr
protected MiniJSON.JSONObject data
protected BoundedObject.BoundedCube spaceCube
public final Filterer<SpaceObject> spaceFilter
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class GenShipProgram
protected void decache()
decache
in class GenShipProgram
public java.lang.String getSettings()
Software
getSettings
in interface Software
getSettings
in class GenSoftware
Software.setSettings(String)
public void setSettings(java.lang.String var)
Software
setSettings
in interface Software
setSettings
in class GenSoftware
var
- the new settingsSoftware.getSettings()
protected Software.SWServices[] getProvidedServices()
getProvidedServices
in class StdProgram
protected Software.SWServices[] getAppreciatedServices()
getAppreciatedServices
in class StdProgram
public boolean isActivationString(java.lang.String word)
Software
isActivationString
in interface Software
isActivationString
in class GenShipProgram
word
- the computer-entry command enteredpublic boolean isDeActivationString(java.lang.String word)
Software
isDeActivationString
in interface Software
isDeActivationString
in class GenShipProgram
word
- the computer-entry command enteredprotected void onDeactivate(MOB mob, java.lang.String message)
onDeactivate
in class GenShipProgram
public boolean isCommandString(java.lang.String word, boolean isActive)
Software
isCommandString
in interface Software
isCommandString
in class GenShipProgram
word
- the computer-entry commandisActive
- true if the software is already activatedpublic java.lang.String getActivationMenu()
Software
getActivationMenu
in interface Software
getActivationMenu
in class GenShipProgram
protected void shutdown()
protected boolean checkDeactivate(MOB mob, java.lang.String message)
checkDeactivate
in class GenShipProgram
protected boolean checkTyping(MOB mob, java.lang.String message)
checkTyping
in class GenShipProgram
protected boolean checkPowerCurrent(int value)
checkPowerCurrent
in class GenShipProgram
public java.lang.String getCurrentScreenDisplay()
Software
getCurrentScreenDisplay
in interface Software
getCurrentScreenDisplay
in class StdProgram
Software.addScreenMessage(String)
,
Software.getScreenMessage()
protected boolean checkActivate(MOB mob, java.lang.String message)
checkActivate
in class GenShipProgram
protected void onActivate(MOB mob, java.lang.String message)
onActivate
in class GenShipProgram
protected void addLineToReadableScreen(java.lang.String s)
protected long[] convertStringToCoords(java.lang.String coordStr)
convertStringToCoords
in class GenShipProgram
protected long[] getCheckedCoords(java.lang.String key)
protected long[] getDataCoords(java.lang.String key)
protected boolean isDBSpaceObject(SpaceObject sO)
protected java.lang.String getDataName(java.lang.String key)
protected java.util.List<SpaceObject> findDBSpaceObjects(long[] coords, long radius)
protected java.lang.String getCustomNotes(long[] coords)
protected java.lang.String getReportOnSpaceObject(SpaceObject obj)
protected SpaceObject spaceCubeMatch(java.lang.String query)
protected java.util.List<SpaceObject> spaceCubeSearch(java.lang.String query)
protected java.lang.String getAllSpaceObjectDataResults(long[] coords)
protected java.lang.String getSpaceObjectDataResults(java.lang.String key, long[] ccoords, MiniJSON.JSONObject jo)
protected java.lang.String getDataResults(java.lang.String key)
protected java.lang.String doSectorQuery(java.lang.String query)
protected java.util.List<SpaceObject> getAllBoundSpaceObjects(BoundedObject.BoundedCube bcube)
protected java.util.List<SpaceObject> dbQuerySpaceObjects(java.lang.String query, boolean near)
protected java.util.List<java.lang.String> getValues(java.lang.String key, boolean noNotes)
protected java.util.Set<java.lang.String> doKeyQuery(java.lang.String query, boolean noNotes)
protected boolean doesNameExistInData(java.lang.String name, java.lang.String okKey)
protected java.lang.String doDBQuery(java.util.List<java.lang.String> parsed, java.lang.String query)
protected void onTyping(MOB mob, java.lang.String message)
onTyping
in class GenShipProgram
protected void onPowerCurrent(int value)
onPowerCurrent
in class GenShipProgram
protected Pair<java.lang.String,java.lang.String> getTargetKeyName(int context)
protected void provideService(Software.SWServices service, Software S, java.lang.String[] parms, CMMsg msg)
provideService
in class StdProgram