NetKernel APIs


com.ten60.netkernel.urii.meta
Class MetaImpl

java.lang.Object
  extended bycom.ten60.netkernel.urii.meta.MetaImpl
All Implemented Interfaces:
IURMeta
Direct Known Subclasses:
MetaImpl

public class MetaImpl
extends Object
implements IURMeta

Implementation of IURMeta for representations created by the NetKernel


Constructor Summary
MetaImpl(String aMimeType, long aExpiryTime, int aCreationCost)
          Creates a new instance of ComponentMeta
 
Method Summary
 int getContextSensitivity()
          Return the depth of sensitivity on the calling context (super stack).
 int getCreationCost()
          Return creation cost
 String getMimeType()
          Return our mime type
 long getPessimisticExpiryTime()
          Return our pessimistic expiry time
 int getUsageCost()
          Return usage cost
protected  void incrementCreationCost(int aCost)
          increment the creation cost
 boolean isExpired()
          default behaviour is always to be expired after expiry time
 boolean isIntermediate()
          Never intermediate by default
 void setMimeType(String aMimeType)
          update our mime type
protected  void setPessimisticExpiryTime(long aExpiryTime)
          update our pessimistic expiry time
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaImpl

public MetaImpl(String aMimeType,
                long aExpiryTime,
                int aCreationCost)
Creates a new instance of ComponentMeta

Parameters:
aMimeType - our mime type
aExpiryTime - our pessimistic expiry time
aCreationCost - our cost of creation
Method Detail

getMimeType

public String getMimeType()
Return our mime type

Specified by:
getMimeType in interface IURMeta

setMimeType

public void setMimeType(String aMimeType)
update our mime type


setPessimisticExpiryTime

protected void setPessimisticExpiryTime(long aExpiryTime)
update our pessimistic expiry time


getPessimisticExpiryTime

public long getPessimisticExpiryTime()
Return our pessimistic expiry time

Specified by:
getPessimisticExpiryTime in interface IURMeta

isExpired

public boolean isExpired()
default behaviour is always to be expired after expiry time

Specified by:
isExpired in interface IURMeta

getCreationCost

public int getCreationCost()
Return creation cost

Specified by:
getCreationCost in interface IURMeta

getUsageCost

public int getUsageCost()
Return usage cost

Specified by:
getUsageCost in interface IURMeta

isIntermediate

public boolean isIntermediate()
Never intermediate by default

Specified by:
isIntermediate in interface IURMeta

incrementCreationCost

protected final void incrementCreationCost(int aCost)
increment the creation cost


getContextSensitivity

public int getContextSensitivity()
Return the depth of sensitivity on the calling context (super stack). 0 means no sensitivity

Specified by:
getContextSensitivity in interface IURMeta

toString

public String toString()

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.