Class SpaceAdmission.GroupAdmission

java.lang.Object
ai.badmonkey.agentspaces.space.replicated.SpaceAdmission.GroupAdmission
All Implemented Interfaces:
SpaceAdmission
Enclosing interface:
SpaceAdmission

public static final class SpaceAdmission.GroupAdmission extends Object implements SpaceAdmission
GROUP: everyone.
  • Method Details

    • admits

      public boolean admits(AgentId agent, SpaceAdmission.Scope scope, long nowMillis)
      Description copied from interface: SpaceAdmission
      Whether the agent may perform the scope now.
      Specified by:
      admits in interface SpaceAdmission
      Parameters:
      agent - the authenticated agent
      scope - the operation: WRITE for a record, TAKE for a claim or a completion
      nowMillis - the space clock, so leased evidence can be judged live
      Returns:
      whether the agent is admitted
    • rule

      Description copied from interface: SpaceAdmission
      The rule this admission implements, carried in the space's SpaceAdvertisement so members learn how the space admits before attaching.
      Specified by:
      rule in interface SpaceAdmission
      Returns:
      the advertised rule
    • toString

      public String toString()
      Overrides:
      toString in class Object