Atavism Version 2018.1AGIS API

atavism.server.currency
Class Purse

java.lang.Object
  extended by atavism.server.objects.NamedPropertyClass
      extended by atavism.server.objects.Entity
          extended by atavism.server.currency.Purse
All Implemented Interfaces:
java.io.Serializable

public class Purse
extends Entity

See Also:
Serialized Form

Field Summary
protected  Purse accountPurse
           
static java.util.concurrent.locks.Lock GlobalLock
           
 
Fields inherited from class atavism.server.objects.Entity
log, staticLock, subObjectNamespacesInt, transientPropertyKeys, type
 
Fields inherited from class atavism.server.objects.NamedPropertyClass
lock, name
 
Constructor Summary
Purse()
           
Purse(OID objectOid)
           
Purse(OID objectOid, java.lang.String name)
           
Purse(java.lang.String name)
           
 
Method Summary
 java.lang.Float balance(java.lang.Float balance, java.lang.String currency)
           
 java.lang.Float balance(java.lang.String currency)
           
 Purse getAccountPurse()
           
 java.lang.Float updateBalance(java.lang.Float delta, java.lang.String currency)
           
 
Methods inherited from class atavism.server.objects.Entity
addSubObjectNamespace, equals, equals, getLock, getNamespace, getOid, getPersistenceFlag, getProperty, getSubObjectNamespaces, getSubObjectNamespacesInt, getTransientDataRef, getType, hashCode, hasSubObjectNamespace, isDeleted, registerTransientPropertyKey, removeProperty, removeSubObjectNamespace, setDeleted, setNamespace, setOid, setPersistenceFlag, setProperty, setSubObjectNamespaces, setSubObjectNamespacesInt, setType, toBytes, toString, unregisterTransientPropertyKey
 
Methods inherited from class atavism.server.objects.NamedPropertyClass
getBooleanProperty, getIntProperty, getName, getPropertyMap, getPropertyMapRef, getStringProperty, lock, modifyIntProperty, setName, setPropertyMap, setupTransient, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GlobalLock

public static java.util.concurrent.locks.Lock GlobalLock

accountPurse

protected transient Purse accountPurse
Constructor Detail

Purse

public Purse()

Purse

public Purse(java.lang.String name)

Purse

public Purse(OID objectOid)

Purse

public Purse(OID objectOid,
             java.lang.String name)
Method Detail

balance

public java.lang.Float balance(java.lang.String currency)

balance

public java.lang.Float balance(java.lang.Float balance,
                               java.lang.String currency)

updateBalance

public java.lang.Float updateBalance(java.lang.Float delta,
                                     java.lang.String currency)

getAccountPurse

public Purse getAccountPurse()


Copyright © 2018 Dragonsan Studios Sp. z o.o.